react: 16.11.0
react-native: 0.62.2
react-native-webrtc: 1.75.3
- Clone the repository, run
npm installORyarn. - For iOS, run the project on Xcode.
- For Android, run
react-native run-androidin the directory.
-
Because the RN version is 0.62.2 and is >0.60.0 therefore supports autolinking in android so you don't need to do anything. For further guidelines on linking the webrtc module, you can refer to the official docs of react-native-webrtc:
- For this to work you need to start the server:
cd server
node index.js OR nodemon index.js OR nodemon (if nodemon is installed)
-
download: ngrok
-
install
-
login
-
After you create the server and deploy it with ngrok copy the link, something like that "https://a4cd7858.ngrok.io" and paste it to
RCTWebRCTDemo2/src/App.js
const url = 'paste_it_here';- It must look like than
const url = 'https://a4cd7858.ngrok.io/';- Whenever you change the ngrok link you must follow the same routine.