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';
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](https://github.com/jitsi/jitsi-meet-sdk-samples/assets/71134943/72d5e13e-29aa-4df7-9657-27242225e7c1)