Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(rnsdk) makes `flags` and `eventListeners` props optional

Ricardo Corriedc6861d5a439
diff --git a/react-native-sdk/index.tsx b/react-native-sdk/index.tsx
index ec112b6be8..e3ac67a6f0 100644
--- a/react-native-sdk/index.tsx
+++ b/react-native-sdk/index.tsx
@@ -35,8 +35,8 @@ interface IUserInfo {
interface IAppProps {
config: object;
- flags: object;
- eventListeners: IEventListeners;
+ eventListeners?: IEventListeners;
+ flags?: object;
room: string;
serverURL?: string;
style?: Object;
@@ -105,12 +105,12 @@ export const JitsiMeeting = forwardRef((props: IAppProps, ref) => {
setAppProps({
'flags': flags,
'rnSdkHandlers': {
- onConferenceJoined: eventListeners.onConferenceJoined,
- onConferenceWillJoin: eventListeners.onConferenceWillJoin,
- onConferenceLeft: eventListeners.onConferenceLeft,
- onEnterPictureInPicture: eventListeners.onEnterPictureInPicture,
- onParticipantJoined: eventListeners.onParticipantJoined,
- onReadyToClose: eventListeners.onReadyToClose
+ onConferenceJoined: eventListeners?.onConferenceJoined,
+ onConferenceWillJoin: eventListeners?.onConferenceWillJoin,
+ onConferenceLeft: eventListeners?.onConferenceLeft,
+ onEnterPictureInPicture: eventListeners?.onEnterPictureInPicture,
+ onParticipantJoined: eventListeners?.onParticipantJoined,
+ onReadyToClose: eventListeners?.onReadyToClose
},
'url': urlProps,
'userInfo': userInfo