Rate this page:

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

Copy URL

Run the following command to install the Voximplant SDK for React Native:

npm install react-native-voximplant --save

or

yarn add react-native-voximplant
Important

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

Copy URL

First, you need to import the Voximplant package, and get a client instance via the getInstance method:

import

import

Connect to the Voximplant cloud and log in

Copy URL

Note that React Native SDK supports promises, i.e., you can handle any type of login independently since promises provide you an async/await construction. To connect to the Voximplant cloud, use the connect method, and to log in to your user, use the login method.

Connection node notice

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:

Connect and log in

Connect and log in

Start implementing functionality

Copy URL

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

Copy URL

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.