/opentok-react-native-samples

Sample applications using OpenTok and React Native

Primary LanguageObjective-CMIT LicenseMIT

OpenTok React Native Samples

OpenTok Labs

These samples demonstrate how to use opentock-react-native to do video-calling in a React Native application.

Contents

In this repo, you'll find:

  • Basic Video Chat:

    • This sample application shows how to connect to an OpenTok session, publish a stream, and subscribe to multiple streams for both iOS and Android using the OpenTok React Native API.
  • Signaling:

    • This sample application shows how to connect to an OpenTok session and implement OpenTok Signaling to create a text chat for both iOS and Android using the OpenTok React Native API.

Pre-Requisites

  1. Install node.js

  2. Install Watchman: brew install watchman

  3. Install React Native CLI: npm install -g react-native-cli

  4. Install and update Xcode (you will need a Mac)

  1. Install and update Android Studio

Setup

  1. Clone this repo.

  2. In your terminal, change your directory to the sample project you want:

  • cd BasicVideoChat/ or cd Signaling/
  1. Install the required node modules: npm install

For iOS

  • Install the Podfile's dependencies: cd ios/ && pod install

Contributing

If you make changes to the project that you would like to contribute back then please follow the contributing guidelines. All contributions are greatly appreciated!