React Native
React Native is an open-source framework that allows developers to create native applications for iOS and Android. If you are looking to integrate Voximplant into the React Web framework instead, see this article.
Install the SDK
Run the following command to install the Voximplant SDK for React Native:
npm install react-native-voximplant --save
or
yarn add react-native-voximplant
React Native SDK uses native modules. If you use the create-react-native-app utility, our SDK does not work because the utility does not allow custom native modules inclusion into a project.
Initialize the SDK
First, you need to import the Voximplant package, and get a client instance via 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.
See the following code example as a reference:
Start implementing functionality
Now you have your application and SDK set up and successfully connected to the Voximplant cloud. To start implementing desired functionality, such as calls, conferences, messages, and more, go to the Guides section of our documentation and pick the features you need.
Download React native SDK demos
Implement the desired functionality by following step-by-step Guides or download and test our latest React native SDK here:
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.