useChats hook

the useChats hook is used to interface with chats.

import { useChats } from '@minchat/reactnative';

Get list of conversations

You can get a list of the conversations of the current user. conversations retrieved are paginated to 25 messages at a time. New conversations started by other users or messages sent to conversations that are on a different page are automatically added to the chats array.

const { chats, loading, error, paginate, paginateLoading } = useChats()

Last updated