Skip to content
Docs
Guides

Join from React Native

Run the iOS and Android Meet and Live example, connect your own app, and migrate from the 1.x SDK.

Use @dtelecom/react-native@2.0.1 for foreground room calls on iOS and Android. The example lets a mobile participant join the same Meet meeting or Live broadcast as someone in a browser. SDK source · iOS and Android example

Use React Native 0.86, React 19.2.3 and Node.js 22.13 or newer within Node 22. The minimum targets are iOS 15.1 and Android API 24. Use Xcode and CocoaPods for iOS or Android Studio and JDK 17 for Android. Native build prerequisites

git clone --branch v2.0.1 https://github.com/dTelecom/client-sdk-react-native.git
cd client-sdk-react-native/example
npm ci

For iOS, run bundle install from example/, then bundle exec pod install from example/ios/. Start Metro with npm start from example/. In a second terminal in that directory, run npm run ios or npm run android.

  1. Open Meet or Live in a browser and create a room.
  2. In the mobile app, tap Scan QR and point the camera at the invite QR code, or paste the /prejoin?room=… link. Enter a different participant name and tap Join room.
  3. In Meet, tap Start mic or Start camera to publish. In Live, a viewer can watch and chat without granting camera or microphone permission. A signed host invite enables broadcasting. Share that link only with the host.
  4. Send a chat message in each direction. Share a screen from the browser to see it on mobile.

To use your own Meet or Live deployment, add its exact HTTPS origin and product to the example’s issuer list. The app submits the invite to that deployment’s /api/join. Keep your Cloud API key and secret on its backend. Invite handling

npm install @dtelecom/react-native@2.0.1

npm installs the pinned dTelecom room client (1.12.28) and WebRTC bridge (150.2.0-preview.0). For iOS, add both CocoaPods sources from the example Podfile. For Android, call DTelecomReactNative.setup(this) before loadReactNative(this) in MainApplication.onCreate(). Configure camera and microphone permissions if your app offers capture. Platform setup

Call registerGlobals() in the app entry point before creating a room. Obtain token, wsUrl and the optional fallbackUrls from your backend. Pass the ordered list through to connectRoom so the SDK can try another node when the primary is unreachable. Ranked signaling URLs

import { AudioSession, connectRoom, registerGlobals, Room } from '@dtelecom/react-native';
import type { RoomCredentials } from '@dtelecom/react-native';
registerGlobals();
export async function join(credentials: RoomCredentials) {
const room = new Room();
await AudioSession.startAudioSession();
try {
await connectRoom(room, credentials);
return room;
} catch (error) {
await leave(room);
throw error;
}
}
export async function leave(room: Room) {
try {
await room.disconnect();
} finally {
await AudioSession.stopAudioSession();
}
}

Request capture permission when a participant chooses to publish. Enable the microphone with room.localParticipant.setMicrophoneEnabled(true) or the camera with setCameraEnabled(true). Render a subscribed video track with <VideoView videoTrack={track} />.

  • Replace @dtelecom/react-native@1.3.0 with 2.0.1. Remove any direct pins to the 104.x bridge and old room client, or align them with the two versions above if your app imports them directly. Rebuild the native app after updating the packages.
  • On Android, change the class in the 1.x npm package from LiveKitReactNative to DTelecomReactNative. The setup(context, audioType) signature still accepts an optional audio type.
  • On iOS, install the new pods. The example uses autolinking and needs no AppDelegate setup call. If your 1.x app called [LivekitReactNative setup] for simulcast video encoding and you want to retain it, replace the LivekitReactNative.h import with DtelecomReactNative.h and call [DtelecomReactNative setup] before React Native starts. Reference native projects
  • If your app uses the legacy example’s token endpoint, switch to a backend that issues Cloud participant tokens. Use the token and node URLs from the same response for each participant.

On an iPhone 13 mini running iOS 26.7.1, the 2.0.1 example joined the hosted Meet and Live rooms and played browser audio, video and shared screens. A browser also received audio when the iPhone guest enabled its microphone in Meet. On an Android 15 emulator, a Live viewer played incoming audio and received host chat with camera and microphone permissions ungranted. The release example also installed and opened on a Samsung Galaxy A16. 2.0.1 source and example

An iOS Simulator and an Android Emulator each joined Meet as a guest and Live as a viewer and signed host. Both received browser audio and video, exchanged chat in both directions, joined through a fallback when the primary was unreachable and recovered signaling on the same node. The browser received camera video and audio from the Android emulator and audio from the iOS simulator. The iOS simulator did not send camera frames to the browser. SDK checks · Example native builds

A separate mid-call test kept the browser on the original node and interrupted only the mobile connection. The iOS simulator rejoined on another node in 1.763 seconds and the Android emulator in 2.434 seconds. Each used its original token and resumed receiving audio and video and exchanging reliable messages. The Android peer also resumed sending audio and video to the browser. The iOS microphone remained published, but the browser received no audio packets from it during that recovery test.

  • The iOS simulator gathered a TURN/TLS relay candidate with standard certificate validation. Physical-device checks are pending for media over a selected TURN/TLS relay, camera publishing, Bluetooth routing and Wi-Fi/cellular handoff.
  • On Android, if signaling reconnects while the microphone permission prompt is open, the first publish attempt can time out. Tap Start mic again after the room reconnects.
  • The example covers foreground calls. Apps that need incoming calls must integrate native calling and push notifications separately.