This is a bridge for ZoomUS SDK:
Tested on XCode 11.5 and node 12.18.1.
Pull requests are welcome.
$ npm install react-native-zoom-us
If you have react-native < 0.60
, check Full Linking Guide
android/build.gradle
:allprojects {
repositories {
flatDir {
dirs "$rootDir/../node_modules/react-native-zoom-us/android/libs"
}
}
}
minSdkVersion
to 21
buildscript {
ext {
minSdkVersion = 21
}
}
See diff for reference.
Info.plist
:<key>NSBluetoothPeripheralUsageDescription</key>
<string>We will use your Bluetooth to access your Bluetooth headphones.</string>
<key>NSCameraUsageDescription</key>
<string>For people to see you during meetings, we need access to your camera.</string>
<key>NSMicrophoneUsageDescription</key>
<string>For people to hear you during meetings, we need access to your microphone.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>For people to share, we need access to your photos.</string>
Update pods using cd ios/ && pod install && cd ..
Make sure to set ENABLE_BITCODE = NO;
for both Debug and Release because bitcode is not supported by Zoom iOS SDK
import ZoomUs from 'react-native-zoom-us';
// initialize minimal
await ZoomUs.initialize({
clientKey: '...',
clientSecret: '...',
})
// initialize with extra config
await ZoomUs.initialize({
clientKey: '...',
clientSecret: '...',
domain: 'zoom.us'
}, {
disableShowVideoPreviewWhenJoinMeeting: true
})
// Start Meeting
await ZoomUs.startMeeting({
userName: 'Johny',
meetingNumber: '12345678',
userId: 'our-identifier',
zoomAccessToken: zak,
userType: 2, // optional
})
// Join Meeting
await ZoomUs.joinMeeting({
userName: 'Johny',
meetingNumber: '12345678',
})
// Join Meeting with extra params
await ZoomUs.joinMeeting({
userName: 'Johny',
meetingNumber: '12345678',
password: '1234',
participantID: 'our-unique-id',
noAudio: true,
noVideo: true,
})
You have to eject your expo project to use this library.
Author: mieszko4
Source Code: https://github.com/mieszko4/react-native-zoom-us
#react-native #react #mobile-apps