REACT NATIVE
React Native SDK
Use the React Native wrapper for chat and one-to-one voice or video calls on Android and iOS.
Before you start
Authenticate the user in your own backend, decide whether they may enter the room, and request a short-lived RTC token. The client receives that token and never receives the App Secret.
Install
This guide assumes access to the mobile SDK source package. Request the package and integration assistance before following these examples.
# Request the React Native source package from support.
# Public npm installation is not available yet.Initialize and join a room
import RTCExpress from "@rtc/react-native-sdk";
const rtc = new RTCExpress();
await rtc.init({ serverUrl, appId, userId, token, mediaMode: "auto" });
await rtc.joinRoom("room-1");Production notes
Keep authorization on your serverConfigure native microphone and camera permissions. Keep the App Secret on your backend; do not embed it in JavaScript.
Test two real devices, permission denial, network switching, background behavior, and reconnects. Record the call ID and UTC time for diagnostics.