Nabla React Native Messaging module set up


Before integrating the Messaging module, make sure you followed the SDK installation guide.

Adding the dependency

Add the messaging UI dependency:

yarn add @nabla/react-native-messaging-ui


npm install --save @nabla/react-native-messaging-ui

Or, if you just need the core APIs:

yarn add @nabla/react-native-messaging-core


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"));