1.6 KiB
1.6 KiB
Setup Guide
1. Install package
npm install @zoom/react-native-videosdk
2. Wrap app with provider
<ZoomVideoSdkProvider
config={{
domain: 'zoom.us',
enableLog: true,
appGroupId: '<ios-app-group-if-needed>',
}}
>
<App />
</ZoomVideoSdkProvider>
3. Platform baseline
- Configure Android/iOS native prerequisites from package docs.
- Ensure React Native/toolchain compatibility with wrapper version.
- Implement backend JWT signing endpoint before session join.
4. Android build stability on Windows
- Prefer a short workspace path for Android builds (example:
C:\temp\rn-video-sdk-example). - Deep nested paths can trigger native CMake/Gradle instability (for example reanimated build trees and repeated
build.ninjaregeneration).
5. Android SDK wiring for CLI runs
- Ensure
android/local.propertiespoints to your SDK dir:
sdk.dir=C\:\\Users\\<user>\\AppData\\Local\\Android\\Sdk
- For shell-driven runs, export/set Android env vars before
react-native run-android:ANDROID_HOMEANDROID_SDK_ROOTPATHincludesplatform-tools
6. Dependency pinning for copied sample projects
- If project was copied from SDK sources, do not keep local relative dependency (
"@zoom/react-native-videosdk": "../") unless parent package exists at that exact location. - Pin/install a concrete version instead (example
@zoom/react-native-videosdk@2.4.5) to avoid Metro resolution failures.
7. Security baseline
- Keep Video SDK secret out of mobile app.
- Use short-lived JWTs per session/user context.
- Validate incoming session inputs server-side.