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

NSMutableDictionary cannot be converted to NSString #180

Closed sushantjadhav111 closed 11 months ago

sushantjadhav111 commented 12 months ago

I am trying react-native-sdk in my app, when i terminate call by pressing end call button ,i get error on iOS simulator

code :

import React, {memo, useCallback, useRef} from 'react';

import {JitsiMeeting} from '@jitsi/react-native-sdk/index'; import {useNavigation} from '@react-navigation/native'; import {LogBox} from 'react-native';

interface MeetingProps { route: any; }

const Meeting = ({route}: MeetingProps) => { LogBox.ignoreAllLogs();

const jitsiMeeting = useRef(); const navigation = useNavigation(); const {roomName,domainName} = route.params;

const onReadyToClose = useCallback(() => { // @ts-ignore navigation.goBack(); // @ts-ignore jitsiMeeting?.current?.close(); }, [navigation]);

const meetingOptions = { domain:domainName, onReadyToClose, roomName, settings: { startWithAudioMuted: true, startWithVideoMuted: true, startAudioOnly: false, }, };

return ( <JitsiMeeting // @ts-ignore flags={{'call-integration.enabled': false}} // Set to false for the simulator. meetingOptions={meetingOptions} ref={jitsiMeeting} style={{flex: 1}} /> ); };

export default Meeting;

Packages : "react-native": "0.71.12", "@giphy/react-native-sdk": "^2.4.2", "@jitsi/react-native-sdk": "^0.2.1", ... Simulator Screen Shot - iPhone 11 - 2023-07-22 at 13 01 08

saghul commented 12 months ago

Thanks for the report! Can you reproduce it with the sample app?

sushantjadhav111 commented 11 months ago

Issue is solved after updating package version for all dependancies( followed react-native-sdk dependancies)