React Native React.js

WebRTC Implementation with React and React Native by using OpenTok

Add opentok-react as a dependency of your application:

yarn add opentok-react

Or if you’re still using npm:

npm install --save opentok-react

Then include opentok.js before your application:

<script src="https://static.opentok.com/v2/js/opentok.min.js"></script>

Alternatively, wrap your top-level component using OpenTok with the preloadScript HOC. The HOC will take care of loading opentok.js for you before rendering.

https://github.com/opentok/opentok-react
https://github.com/opentok/opentok-react-native-samples

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *