jitsi / jitsi-meet-sdk-samples

Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
270 stars 235 forks source link

Element type is invalid: expected a string ( for built-in components) or a class/function ( for composite components) but got: number #202

Closed vnphu closed 5 months ago

vnphu commented 9 months ago

React-native: Element type is invalid: expected a string ( for built-in components) or a class/function ( for composite components) but got: number

Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI

saghul commented 9 months ago

What SDK and version are you trying to run?

vnphu commented 9 months ago

What SDK and version are you trying to run?

i use "@jitsi/react-native-sdk": "^0.4.1",

saghul commented 9 months ago

Are you using expo?

vnphu commented 9 months ago

Are you using expo?

no, you see example https://github.com/vnphu/test-jitsi-react-native

vnphu commented 9 months ago

385529875_1086074419499375_4825534867658315158_n

saghul commented 9 months ago

Looks like you didn't run update_deps after updating the SDK to version 0.41.

vnphu commented 9 months ago

I ran update_deps as instructed, but it error ios error: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI android: crash app

I have tried running on many versions of react-native but it doesn't work, can you recreate the repo and test

saghul commented 9 months ago

Start from our sample app please. Does that work for you?

vnphu commented 9 months ago

it not work

saghul commented 9 months ago

You really need to be more thorough with your explanations if you want to get help. What doesn't work exactly? What Node and npm versions are you using? What exact steps did you follow?

Anfieldd commented 9 months ago

I have the same error with any SDK version. I can't reproduce it for the sample app because of another error. But in my project, the error happened after updating the node from 16.17.1 to 18.18.0

vnphu commented 8 months ago

android ok but ios error : 'new NativeEmitter()' requires a non-null argument

saghul commented 8 months ago

What RN version are you using?

vnphu commented 8 months ago

What RN version are you using?

rn version 0.68.5 Do you support this version?

vnphu commented 8 months ago

Simulator Screenshot - iPhone 14 Pro - 2023-10-19 at 14 36 28 Simulator Screenshot - iPhone 14 Pro - 2023-10-19 at 14 36 31

saghul commented 8 months ago

rn version 0.68.5 Do you support this version?

No, you need to be using RN >= 0.69.

vnphu commented 5 months ago

ez