GetStream / stream-video-js

GetStream JavaScript Video SDK
https://getstream.io/video/sdk/
Other
69 stars 24 forks source link

App gettting crashed on android on final step #1587

Open aliwaqar981 opened 8 hours ago

aliwaqar981 commented 8 hours ago

Which package/packages do you use?

Describe the bug

  useEffect(() => {
    const _call = client?.call('default', callId);
    _call
      ?.join({create: true})
      .then(() => {
        console.log("Call created successfully");

        setCall(_call) //App gets crashed when I set _call in state
      })
  }, [client, callId]);

I tried following the guideline for react native but in the end when I set call in state. App is getting crashed.

To Reproduce Steps to reproduce the behavior:

I tried to create reproduction in separate project. It was working correctly there. My new project was on react-native 0.76.2. I'm thinking maybe that's the reason but I'm not sure.

Expected behavior Video call should get starts after running above code snippet.

Screenshots If applicable, add screenshots to help explain your problem.

Version

Env:

Fill out what's applicable

React Native react-native: 0.74.3

Node JS client

Additional context It seems some compatibility issue of sdk with react-native 0.74.3 because it worked on 0.76.2.

oliverlaz commented 8 hours ago

hi @aliwaqar981, the code snippet looks correct to me. Can you please share the stack trace of the crash so we can analyze it?