callstack / react-native-opentok

React Native OpenTok
202 stars 79 forks source link

Override API key #101

Closed 99ff00 closed 6 years ago

99ff00 commented 6 years ago

Override hardcoded API key.

michalchudziak commented 6 years ago

Can you explain the usecase for having API key in JS? Do you think someone will need to use multiple API keys?

99ff00 commented 6 years ago
  1. The app is getting configs from server
  2. The app source code is used in third-party SDK and OT keys are different for every end-user
  3. It's always nice to have flexible option like this
jonathanwmaddison commented 6 years ago

This PR will be useful. As @99ff00 mentioned, we are getting our configs from server, setting the api key will allow us more flexibility with changing our tok box project settings. Thanks for putting this together @99ff00!