Skip to content

opentok/opentok-react-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

650 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OpenTok React Native SDK

Tokbox is now known as Vonage

React Native library for using OpenTok / Vonage Video API. This library is officially supported by Vonage.

📚 For complete documentation, installation instructions, API reference, and samples, visit:
https://tokbox.com/developer/sdks/react-native/


Quick Start

Installation

npm install opentok-react-native@<VERSION>
# or
yarn add opentok-react-native@<VERSION>

Note: Replace <VERSION> with the target version to use.

For complete installation instructions including iOS and Android setup, see the official installation guide.

Basic Usage

<OTSession apiKey="your-api-key" sessionId="your-session-id" token="your-session-token">
  <OTPublisher style={{ width: 100, height: 100 }}/>
  <OTSubscriber style={{ width: 100, height: 100 }} />
</OTSession>

Important: React Native New Architecture Support

Starting from version 2.31.1, the OpenTok React Native SDK is built with the React Native new architecture.

  • Supported: React Native 0.76+ (new architecture)
  • Not supported: Older React Native versions (legacy architecture)

Applications using older SDK versions will need to migrate to React Native's new architecture before upgrading. See the installation guide for required package registration steps.


Documentation & Resources

Resource Link
SDK Documentation https://tokbox.com/developer/sdks/react-native/
API Reference https://tokbox.com/developer/sdks/react-native/reference
Sample Applications opentok-react-native-samples
Release Notes https://tokbox.com/developer/sdks/react-native/release-notes
Developer Guides https://tokbox.com/developer/guides

Samples

To see this library in action, check out the opentok-react-native-samples repo, which includes:

  • Basic Video Chat - Connect, publish, and subscribe to streams
  • Archiving - Display recording indicators
  • Background Blur - Apply video transformers
  • Multiparty - Manage multiple participants
  • Signaling - Send and receive text signals
  • Screen Sharing - Publish screen-sharing streams

Development and Contributing

Interested in contributing? We ❤️ pull requests! See the Contribution guidelines.


Getting Help

We love to hear from you! If you have questions, comments, or find a bug in the project, let us know:


License

This project is licensed under the Adobe-2 License. See the LICENSE file for details.