React Native Beta wrapper around the Agora RTC SDKs for Android and iOS
Read this in other languages: 中文
Please refer to here for a new QuickStart. This repo is about to be deprecated. The new one has NPM support and is more suited to latest React Native development. The new SDK repo is a community one maintained here
This tutorial shows you how to quickly start developing requests with the Agora RTC SDK for React Native wrapper for Android/iOS.
This tutorial demonstrates these basic Agora SDK features:
For Android development:
For iOS development:
This section shows you how to prepare and build the Agora React Native wrapper for the sample app.
Open the App.js
file. In the render()
method, update YOUR APP ID
with your App ID.
render() {
AgoraRtcEngine.createEngine('YOUR APP ID');
...
}
Using Terminal or Command Prompt, cd
to your project directory and enter npm install
. This command generates the project files for the Android or iOS sample apps.
Add the appropriate SDK, connect the device, and run the project as described here:
Android
Download the Agora Video SDK.
Un-compress the downloaded SDK package and copy the libs/agora-rtc-sdk.jar
file into the android/app/libs
folder.
Then copy the libs/arm64-v8a/x86/armeabi-v7a
folder into the android/app/src/main/jniLibs
folder.
In Android Studio, open the android
project folder and connect the Android device.
Sync and run the project.
iOS
Download the Agora Video SDK.
Un-compress the downloaded SDK package and copy the libs/AograRtcEngineKit.framework
file into the ios/RNapi
folder.
Open RNapi.xcodeproj
and connect your iPhone/iPad device.
Apply a valid provisioning profile and run the project.
This software is under the MIT License (MIT). View the license.