Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TypeError: undefined is not an object (evaluating '_reactNativeZoomUsBridge.RNZoomUsBridge.initialize') #39

Open
dineshydv-97 opened this issue Mar 19, 2021 · 0 comments

Comments

@dineshydv-97
Copy link

dineshydv-97 commented Mar 19, 2021

componentDidMount() {
const meetingEventEmitter = new NativeEventEmitter(
RNZoomUsBridgeEventEmitter,
);
console.log(
'ComponentDidMount sdk initialized' + this.state.sdkInitialized,
);
console.log('ComponentDidMount sdk initialized' + meetingEventEmitter);

if (!this.state.sdkInitialized) {
  this.sdkInitialized = meetingEventEmitter.addListener(
    'sdkInitialized',
    () => {
      console.log('sdkInitialized');

      // lets also get access token
      this.createAccessToken();
    },
  );
  this.setState({sdkInitialized: true});
}

for initialize

initializeZoomSDK = () => {
try {
console.log(
'App_key' + ZOOM_APP_KEY + 'ZOOM_APP_SECRET' + ZOOM_APP_SECRET,
);
if (!ZOOM_APP_KEY || !ZOOM_APP_SECRET) return false;

  // init sdk
  console.log('initialize');

  RNZoomUsBridge.initialize(ZOOM_APP_KEY, ZOOM_APP_SECRET)
    .then()
    .catch((err) => {
      console.warn(err);
      Alert.alert('error!', err.message);
    });
} catch (e) {
  console.log(e);
}

};

React Native version:

"react": "16.9.0",
"react-native": "0.61.0",
Screenshot_1616072168

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant