Setup
Nabla React Native Messaging module set up
Before integrating the Messaging module, make sure you followed the SDK installation guide.
The messaging module makes it easy to build a modern messaging experience and to allow to interact with your care team via text, image, video, document and audio messages.
For a quick try-out of the Messaging module, you can check out our Messaging sample app.
Adding the dependency
Add the messaging UI dependency:
yarn add @nabla/react-native-messaging-ui
or
npm install --save @nabla/react-native-messaging-ui
Or, if you just need the core APIs:
yarn add @nabla/react-native-messaging-core
or
npm install --save @nabla/react-native-messaging-core
Once done, run pod install
in your ios
directory, in order to install the native dependencies.
Setup Messaging module
Then, you need to initialize the messaging module before calling NablaClient.initialize
:
await NablaMessagingClient.initializeMessagingModule();
await NablaClient.getInstance().initialize(
new Configuration("YOUR_API_KEY") /* provideAuthTokens */
);
Updated 6 months ago