After installation completes successfully, Import enx-rtc-react-native
in your class where you want to access the portal Capabilities.
- Step 1 – Open terminal
- Step 2 – Go to your React Native project directory
- Step-3 – Run Command
npm install
sfm-rtc-react-native
--save - Step 4 – Run Command to link
react-native link
sfm-rtc-react-native
For example:
import {Enx, EnxRoom, EnxStream, EnxPlayerView} from "sfm-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.