Brak opisu
matrixbirds 2e252259fa fix. package.json 5 lat temu
..
android add sample 5 lat temu
assets add sample 5 lat temu
components add samples readme 5 lat temu
ios add sample 5 lat temu
.babelrc add sample 5 lat temu
.buckconfig add sample 5 lat temu
.flowconfig add sample 5 lat temu
.gitattributes add sample 5 lat temu
.gitignore add sample 5 lat temu
.watchmanconfig add sample 5 lat temu
App.js add samples readme 5 lat temu
README.md add samples readme 5 lat temu
README.zh.md docs. sample readme 5 lat temu
app.json add sample 5 lat temu
index.js add sample 5 lat temu
package-lock.json add sample 5 lat temu
package.json fix. package.json 5 lat temu
utils.js add samples readme 5 lat temu
yarn.lock add sample 5 lat temu

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