First, add the platform-specific Meeting SDK libraries you intend to use. Then authenticate, and finally run the demo app.
Prepare to build for Android
- Copy the
zoom-sdk-android-VERSION/mobilertc-android-studio/mobilertcfolder from the Meeting SDK for Android and put it underreact-native-zoom-sdk/example/android. - If you are building the Meeting SDK React Native 0.0.1-beta, modify a dependency in
react-native-zoom-sdk/example/android/build.gradle.
Replacedependencies.add("default","com.google.android:flexbox:2.0.1")
withdependencies.add("default","com.google.android.flexbox:flexbox:3.0.0")
Prepare to build for iOS
- Copy iOS SDK libraries from the Meeting SDK for iOS.
Source:zoom-sdk-ios-VERSION/lib
Destination:react-native-zoom-sdk/example/iOS
Authenticate your app
Use your Client ID and Client Secret app credentials to generate a JSON web token (JWT) that your application will pass into the Meeting SDK. See Meeting SDK authorization for details.
Run the demo app
-
Fill in the JWT token into
react-native-zoom-sdk/example/config.ts.export const ZOOM_JWT_TOKEN = '<YourTokenHere>'; -
To install dependencies, navigate to the root of the
react-native-zoom-sdkworking directory and run this command.yarn install -
To install dependencies for the demonpm app, navigate to the
react-native-zoom-sdk/exampledirectory in the working directory and run this command.yarn install-
To download and link dependencies on Podfile, navigate to
react-native-zoom-sdk/example/iosin the working directory and run this command.pod install --repo-update
-
-
To start the React Native service, navigate to the
react-native-zoom-sdk/exampledirectory and run the commandyarn start --reset-cache.- To run the app on an Android device:
a. Navigate toreact-native-zoom-sdk/example/config.tsand update the JWT token.
b. Delete the generated Android assets file atexample/android/app/src/main/assets/index.android.bundle.
c. To generate new assets for Android, navigate to the/examplefolder and run this command at the terminal prompt.
d. Runreact-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/resyarn Androidat the terminal prompt. - To run the app on an iOS device, run
yarn iosat the terminal prompt or openexample/ios/ZoomMeetingSDKExample.xcworkspaceto run the project on Xcode.
- To run the app on an Android device: