mieszko4 / react-native-zoom-us

MIT License
126 stars 118 forks source link

Issue Initializing Zoom in React-Native Android #361

Open RakshithCodewave opened 3 months ago

RakshithCodewave commented 3 months ago

Hi Guys,

I'm getting an issue when I try to initialize the Zoom SDK in React-Native on Android. I'm sending the proper jwtToken and domain, and it works perfectly on iOS. and version is "react-native-zoom-us": "^8.0.1",

[TypeError: null is not an object (evaluating '_$$_REQUIRE(_dependencyMap[6], "./native").RNZoomUs.initialize')]

For Android Code:


ZoomUs.initialize({
  jwtToken: 'example_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJEUlJuQ0ptVjNMeHZTSkNPc3dH',
  domain: 'zoom.us',
})
.then(res => {
  ZoomUs.joinMeeting({
    userName,
    meetingNumber,
    password,
  })
  .then(res => {
    if (from === 'curricular') {
      Emitter.emit('joined', true);
    }
  })
  .catch(err => {
    console.log('ZoomUs.error=> ', err);
  });
})
.catch(err => {
  console.log('ZoomUs.initialize error=> ', err);
});

For iOS:

ZoomUs.initialize({
  jwtToken: 'example_eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBLZXkiOiJEUlJuQ0ptVjNMe',
  iosAppGroupId: 'group.com.abcd.org',
  iosScreenShareExtensionId: 'com.abcd.org.ScreenShare',
})
.then(res => {
  console.log('ZoomUs.initialize res==>>>>', res);

  ZoomUs.joinMeeting({
    userName,
    meetingNumber,
    password,
  })
  .then(res => {
    if (from === 'curricular') {
      Emitter.emit('joined', true);
    }
  })
  .catch(err => {
    console.log('ZoomUs.error=> ', err);
  });
})
.catch(err => {
  console.log('ZoomUs.initialize error=> ', err);
});

Any help resolving this issue would be greatly appreciated!

mieszko4 commented 2 months ago

You use the same jwtToken on both iOS and Android, right? Does the same issue happen when you try with test app?