In UIKit for React Native, there are various custom hooks that you can use to receive data directly from Sendbird Chat SDK, which are then used to update the UI of the key functions. These hooks are configured on a feature basis in each key function and can be used accordingly.
Note: In order to use the hooks provided by UIKit, you must set them as child components of
useSendbirdChat() hook requests data from the Chat SDK on the current user's information.
useConnection() hook allows the Chat SDK to either connect or disconnect a user from the Sendbird server.
If you set the value of
true, the registration of a user's push token registration automatically turns on and off when the user is connected or disconnected from the server. The default value of this method is
useUIKitTheme() hook allows you to use the default
usePlatformService() hook lets you use the platform service interfaces that allow you to access all the features of the native module.
useLocalization() hook allows you to use the default
StringSet provided by UIKit for React Native.
useToast() hook allows you to display all toast messages in UIKit through the
usePrompt() hook allows you to receive a text input from the current user through the
useBottomSheet() hook displays a menu of items from the bottom of the screen through the
useActionMenu() hook allows you to display a menu of items on the screen through the
useAlert() hook allows you to display an alert dialog on the screen through the