Installation
Install the package
sh
npm install react-native-ota-clientReact Native autolinking discovers the native package on Android and iOS. Rebuild the native app after installation. Metro alone cannot add native code.
For local development, the example workspace in the SDK repository consumes the SDK source directly. In a host app, install the package from npm.
Verify the install
- Rebuild the Android app and confirm that autolinking registers
com.otasdk.OtaSdkPackage. - Run
pod installin the iOS project and confirm that theOtaSdkpod is installed. - Import the JavaScript API and call
OTAUpdates.getStatus()from a release build.