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
Top comments (1)
Just a note that this respiratory is archived and deprecated, so developers should be wary of using this for any new or ongoing projects.