Skip to content

namanicebed/ReactNativeWebRTC

Repository files navigation

ReactNativeWebRTC + Socket.io Server

Configuration (Works on iOS & Android)

react: 16.11.0

react-native: 0.62.2

react-native-webrtc: 1.75.3

Usage

  • Clone the repository, run npm install OR yarn.
  • For iOS, run the project on Xcode.
  • For Android, run react-native run-android in the directory.

Native Code Changes (Android & iOS)

Instructions

  • 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)

Ngrok

  • 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/';

Note

  • Whenever you change the ngrok link you must follow the same routine.

About

react-native-webrtc demo with server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors