Jitsi Meet mobile SDK examples (Android, iOS and React Native)
Apache License 2.0
284
stars
240
forks
source link
Getting error Cannot read property 'setTimeout' of null, js engine: hermes ERROR TypeError: An error was thrown when attempting to render log messages via LogBox. #251
On clinking on trying to join the room i am getting this error infinitely
jitsiMeeting tag is causing the issue
On both mine and sample code
my code import { Text, View } from "react-native"; import React, { useCallback, useEffect, useState, useRef } from "react"; import { JitsiMeeting } from "@jitsi/react-native-sdk"; import { useNavigation } from "@react-navigation/native"; import { generateJwt } from "../../Services/NetworkingService";
export default function JoinMeetingView(props) { const { id } = props.route.params; const jitsiMeeting = useRef(null); const [meetjwt, setMeetJwt] = useState(""); const [showMeet, setShowMeet] = useState(false); const [roomName, setRoomName] = useState(""); const navigation = useNavigation();
// Define callback functions for Jitsi events const onReadyToClose = useCallback(() => { if (jitsiMeeting.current) { navigation.navigate("Menu"); jitsiMeeting.current.close(); } }, [navigation]);
const onEnterPictureInPicture = useCallback(() => { if (jitsiMeeting.current) { jitsiMeeting.current.setAudioMuted(false); jitsiMeeting.current.setVideoMuted(false); } });
// Generate JWT for Jitsi meeting on component mount useEffect(() => { generateJwt(id) .then((response) => { setMeetJwt(response); setRoomName(
URL_NAME}
); }) .catch((error) => console.log(error)); }, [id]);useEffect(() => { if (meetjwt && roomName) { setShowMeet(true); } }, [meetjwt, roomName]);
const eventListeners = { onReadyToClose, onEnterPictureInPicture, };
const ContentView = () => { return ( <JitsiMeeting // Event Listeners eventListeners={eventListeners} serverURL={"https://meet.jit.si"} flags={{ "call-integration.enabled": true, "pip.enabled": true, "videoQuality.persist": true, }} // Room and Authentication room={roomName} ref={jitsiMeeting} jwt={meetjwt} token={meetjwt} style={{ flex: 1 }} config={{}} userInfo={{ displayName: "Guest" }} /> ); };
return ( <> {showMeet ? (
); }
Packages : "react-native-webrtc": "^124.0.4", "react-native": "0.75.3", "@jitsi/react-native-sdk": "^10.2.1",