@applooma/uikit-react-native
v0.1.9
Published
AppLooma RTC UIKit for React Native — drop-in live streaming, voice room and 1-to-1 call screens
Maintainers
Readme
@applooma/uikit-react-native
Drop-in live streaming, voice room and 1-to-1 call screens for React Native, built on AppLooma RTC.
npm install @applooma/uikit-react-native @applooma/rtc-react-native @applooma/rtc-native-core @applooma/rtc-native-webrtc \
react-native-linear-gradient react-native-svg lucide-react-native react-native-safe-area-context
cd ios && pod installDo the one-time native setup from the React Native SDK docs and call
initAppLooma() at startup. Then:
import { LiveStream, VoiceRoom, Call } from '@applooma/uikit-react-native';
const kit = {
appId: 'YOUR_APP_ID',
user: { id: me.id, name: me.name },
// YOUR server returns { token, wsUrl } — the API secret never ships in the app.
tokenProvider: (room, role, user) => api.rtcToken({ room, role, identity: user.id, name: user.name }),
};
<LiveStream {...kit} room="show-42" role="host" onLeave={navigation.goBack} />
<VoiceRoom {...kit} room="party-7" seats={8} onLeave={navigation.goBack} />
<Call {...kit} room="call-abc" video onLeave={navigation.goBack} />Give each screen the whole display. Camera and microphone permissions are requested on Android when the screen joins.
On Android 12 and above also declare BLUETOOTH_CONNECT so Bluetooth headsets work
in the screens. Needs @applooma/rtc-react-native 0.5.11 or newer.
MIT © AppLooma LLC
