React Native
React Native is an open-source framework that allows developers to create native applications for both iOS and Android platforms. If you prefer integrating Voximplant into the React Web framework instead, refer to this article: this article.
Install the SDK
To install the Voximplant SDK for React Native, execute the following command:
npm install react-native-voximplant --save
or
yarn add react-native-voximplant
React Native SDK relies on native modules. If you use the create-react-native-app utility, our SDK does not work because it does not allow the inclusion of custom native modules within a project.
Initialize the SDK
First, import the Voximplant package and obtain a client instance using the getInstance method:
Connect to the Voximplant cloud and log in
When initializing and connecting the SDK to the Voximplant cloud, you need to specify the node to connect to. Your node is bound to your Voximplant account.
To find which node your account belongs to, log in to your control panel and see the Credentials for working with API, SDK, SIP section on the main dashboard.
For reference, refer to the following code example:
Start implementing functionality
Now that you have successfully connected your application and SDK to the Voximplant cloud, you can begin implementing the desired functionality, such as calls, conferences, messages, and more. To get started, head to the Guides section of our documentation and select the features you need.
Download React native SDK demos
To implement the desired functionality, you can follow the step-by-step Guides or download and test our latest React Native SDK. Here are some examples:
Call: Demonstrates how to create an application that uses the Voximplant React Native SDK and Voximplant cloud platform for making and receiving audio and video calls.
Conference: Demonstrates how to create an application that uses the Voximplant React Native SDK and Voximplant cloud platform for making conference calls. Using it, you can join conference calls, start and stop sending videos during a conference, mute audio, and many more.
Video conference: Demonstrates how to create an application that uses the Voximplant React Native SDK and Voximplant cloud platform for making and receiving audio and video calls with push notifications.