This is a simple application illustrating video call written in React Native with WebRTC and PeerJS.
TODO:
https://reactnative.dev/docs/environment-setup
npm install react-native-webrtc@~1.100.1
npm install react-native-peerjs
- $npm install
- $npx pod-install ios
- $npx react-native start
- Open a seperate Terminal and run $npx react-native run-ios
- Open ios/LMS.xcworkspace file by Xcode
- Configure project's Build settings
- From Xcode's Product menu, choose Archive
- $npm install
- $npx react-native start
- $cd android
- $./gradlew assembleDebug --warning-mode all
- Open a seperate Terminal and run $npx react-native run-android
- $mkdir android/app/assets
- $mkdir android/app/src/main/assets
- $npx react-native bundle --platform android --dev false --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
- $cd app/build/outputs/apk/debug
https://reactnative.dev/docs/upgrading
rm -rf node_modules
rm package-lock.json
rm yarn.lock
rm -rf ios/Pods
rm ios/Podfile.lock
npm install
npx pod-install ios
npx react-native start --reset-cache
Here are some reference links to 3rd libraries.