the useUser hook is used to get the current user. this returns a User object.
useUser
import { useUser } from '@minchat/reactnative';
the user returned is the user that was set as the currentUser when setting up the MinChatProvider
currentUser
const user = useUser()
Last updated 2 years ago