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