the useMinChat hook is used to access the minchat object
import{useMinChat}from'@minchat/reactnative'
constminchat=useMinChat()
Get Connected User
get the user that is connected to the minchat instance. Returns a User object.
constuser=minchat?.getConnectedUser()
Create User
You should create users in your MinChat application to initiate conversations with. Users are at the core of all conversations. MinChat applications are made up of users who chat in either group chats or one-to-one conversations.
in MinChat, a User is a person that uses your app. Typically, you will have one MinChat User for each user in your own database.
Usually, you would create users based on the data from your database. A User is represented by a JSON object.