- Download the sdk version for iOS on the link https://dev.zoomlogin.com/zoomsdk/#/docs
- Create a directory folder ~/Documents/ZoomSDK and paste the ZoomAuthentication.framework file
- Check if the directory looks like this ~/Documents/ZoomSDK/ZoomAuthentication.framework
$ npm install react-native-zoom-sdk --save
$ react-native link react-native-zoom-sdk
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-zoom-sdk
and addRNReactNativeZoomSdk.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNReactNativeZoomSdk.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNReactNativeZoomSdkPackage;
to the imports at the top of the file - Add
new RNReactNativeZoomSdkPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-zoom-sdk' project(':react-native-zoom-sdk').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-zoom-sdk/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-zoom-sdk')
import ZoomAuth from 'react-native-zoom-sdk'
const appToken = 'your token'
const userId = 'user'
const encrypt = 'encrypt'
const secret = 'secr3t'