The React Native SDK is used to build Hybrid Application for Android and iOS based devices. The reference contains features, methods and notifications.

Table of Contents

How to use React Native SDK?

  • Step 1 – Open terminal
  • Step 2 – Go to your React Native project directory
  • Step-3 – Run Command npm install enx-rtc-react-native --save
  • Step 4 – Run Command to link react-native link enx-rtc-react-native

After installation completes successfully, Import enx-rtc-react-native in your class where you want to access EnableX Capabilities.

For example:

import {Enx, EnxRoom, EnxStream, EnxPlayerView} from "enx-rtc-react-native";   

Error & Exceptions

iOS SDK method call might face exception cases and fail. In such cases a JSON is returned through Callback. Example of JSON Object given below:

	"errorCode": Number,
	"msg": "String",
	"desc": "String"
  • errorCode– Number. Error Code.
  • msg – String. Error Message.
  • desc – String. Optional. Descriptive explanation of the error.

Explore React Native SDK