Skip to main content

Installation

Install the SDK using npm.

npm install @cloudflare/realtimekit-react-native @cloudflare/react-native-webrtc
@cloudflare/realtimekit-react-nativenpm version
@cloudflare/react-native-webrtcnpm version
info

The below instructions are for the release builds, debug builds should work without any additional steps.

  1. Edit your android/gradle.properties and add the following line
newArchEnabled=false
android.useFullClasspathForDexingTransform=true
  1. Create / append to the file android/app/proguard-rules.pro
-keep class io.webrtc.** { *; }
-dontwarn org.chromium.build.BuildHooksAndroid
  1. 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'
}
}