Aucune description
matrixbirds 1448fc04a8 fix. disableVideo il y a 5 ans
..
android fix compiler environment il y a 5 ans
assets add sample il y a 6 ans
components fix. disableVideo il y a 5 ans
ios delete sample's Podfile.lock il y a 5 ans
.babelrc add sample il y a 6 ans
.buckconfig add sample il y a 6 ans
.flowconfig fix. new 0.58.0 il y a 5 ans
.gitattributes add sample il y a 6 ans
.gitignore fix. new 0.58.0 il y a 5 ans
.watchmanconfig add sample il y a 6 ans
App.js remove. privacy project xcode settings il y a 5 ans
README.md add samples readme il y a 6 ans
README.zh.md docs. sample readme il y a 6 ans
app.json add sample il y a 6 ans
babel.config.js refactor. event il y a 5 ans
index.js add sample il y a 6 ans
package.json fix. new 0.58.0 il y a 5 ans
utils.js integerate ios react-native demo il y a 5 ans
yarn.lock remove. privacy project xcode settings il y a 5 ans

README.md

中文版本

Android Setup

Prerequisites

  • You should installed and linked react-native-agora
  • Android Studio
  • Android SDK
  • Reliable USB Cable
  • Android Device

Build

More Android Setup details read the doc

  adb reverse tcp:8081 tcp:8081
  adb reverse tcp:8097 tcp:8097
  npm install
  npm run android

Build Signed App

Generate keystore file.

    keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

Edit android/app/build.gradle

    signingConfigs {
        release {
            if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
                storeFile file(MYAPP_RELEASE_STORE_FILE)
                storePassword MYAPP_RELEASE_STORE_PASSWORD
                keyAlias MYAPP_RELEASE_KEY_ALIAS
                keyPassword MYAPP_RELEASE_KEY_PASSWORD
            }
        }
    }

Edit android/gradle.properties

  MYAPP_RELEASE_STORE_FILE=my-release-key.keystore # your keystore file name
  MYAPP_RELEASE_KEY_ALIAS=my-key-alias # key alias
  MYAPP_RELEASE_STORE_PASSWORD=****** # password
  MYAPP_RELEASE_KEY_PASSWORD=****** # password confirm

Build

  npm run build-android

iOS Setup

Prerequisites

  • You should installed and linked react-native-agora
  • Xcode 10.0+
  • iOS Device
  • Reliable iOS Device Cable

Build

More iOS Setup details read the doc

  npm install
  npm run ios