react-native-webrtc
is not available in Expo Go, that's why the Expo Dev Client is used.
- Clone this repo
- Install dependencies:
npm i
- Build locally:
npx expo run:android
- Run app: Emmulator
npm run start
OR Real (connected) devicenpm run start -- --tunnel
npx expo prebuild --clean npx expo run:android
mkdir android/app/src/main/assets/ && react-native bundle --platform android --dev true --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
cd android
gradlew assembleDebug
android/build.gradle
subprojects { subproject ->
afterEvaluate{
if((subproject.plugins.hasPlugin('android') || subproject.plugins.hasPlugin('android-library'))) {
android {
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
}
}
}
}