forked from skrafft/react-native-jitsi-meet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.ios.js
27 lines (23 loc) · 795 Bytes
/
index.ios.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* @providesModule JitsiMeet
*/
import { NativeModules, requireNativeComponent } from 'react-native';
export const JitsiMeetView = requireNativeComponent('RNJitsiMeetView');
export const JitsiMeetModule = NativeModules.RNJitsiMeetView;
const call = JitsiMeetModule.call;
const audioCall = JitsiMeetModule.audioCall;
const endCall = JitsiMeetModule.endCall;
JitsiMeetModule.call = (url, userInfo, meetOptions, meetFeatureFlags) => {
userInfo = userInfo || {};
meetOptions = meetOptions || {};
meetFeatureFlags = meetFeatureFlags || {};
call(url, userInfo, meetOptions, meetFeatureFlags);
}
JitsiMeetModule.audioCall = (url, userInfo) => {
userInfo = userInfo || {};
audioCall(url, userInfo);
}
JitsiMeetModule.endCall = () => {
endCall();
}
export default JitsiMeetModule;