dipak-tomar / react-native-webrtc-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WebRTC React Native App with Signalling


Run the Sample App

Clone the repository to your local environment.

git clone https://github.com/videosdk-live/webrtc.git

Server Setup

Step 1: Go to server folder

cd react-native-webrtc-app/server

Step 2: Install Dependency

npm install

Step 3: Run the project

npm run start

Client Setup

Step 1: Go to client folder

cd react-native-webrtc-app/client

Step 2: Install the dependecies

npm install

Step 3: Provide your local Ip address in SocketIOClient.

in App.js file, update the Network Ip address.

const socket = SocketIOClient("http://192.168.2.201:3500", {});

Step 4: Run the sample app

Bingo, it's time to push the launch button.

npm run start
npm android
npm ios

About


Languages

Language:JavaScript 43.7%Language:Java 26.1%Language:C++ 11.9%Language:Objective-C++ 6.2%Language:Objective-C 4.1%Language:Starlark 3.3%Language:Makefile 2.6%Language:Ruby 2.2%