Installation
- npm
- yarn
Install the SDK using npm.
npm install @cloudflare/realtimekit-react-native @cloudflare/react-native-webrtc
Install the SDK using yarn.
yarn add @cloudflare/realtimekit-react-native @cloudflare/react-native-webrtc
@cloudflare/realtimekit-react-native | |
@cloudflare/react-native-webrtc |
- Android
- iOS
info
The below instructions are for the release builds, debug builds should work without any additional steps.
- Edit your
android/gradle.properties
and add the following line
newArchEnabled=false
android.useFullClasspathForDexingTransform=true
- Create / append to the file
android/app/proguard-rules.pro
-keep class io.webrtc.** { *; }
-dontwarn org.chromium.build.BuildHooksAndroid
- In your
android/app/build.gradle
edit the release configuration and add the following line importing the proguard configuration
buildTypes {
release {
...
...
...
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
iOS minimum version 14.0
We support minimum OS version 14.0
for our iOS SDK.
- Open your podfile and make sure your platform is set to ios 14
platform :ios, '14.0'
- Add the fonts and permission entries in
info.plist
<key>NSCameraUsageDescription</key>
<string>For people to see you during meetings, we need access to your camera.</string>
<key>NSMicrophoneUsageDescription</key>
<string>For people to hear you during meetings, we need access to your microphone.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>For people to share, we need access to your photos.</string>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>