BIQ SDK for React Native (Expo module)
Inside project's root:
- Install dependencies
npm install- Build plugin - run after making changes to plugin in /plugin
npm run prepare- Build module and watch for changes
npm run buildInside /example folder:
- Install dependencies
npm install- Configure Expo modules - run after making changes to module's plugin or /example/app.json
npx expo prebuildMight also require pod reinstalation for iOS:
cd ios
pod install- [optional] Run on Android emulator (BLE features will not work on emulator, but it is useful for testing the build process)
npx expo run:android- [optional] Run on Android device
npx expo run:android --device- [optional] Build Android apk in /example/android/app/build/outputs/apk/release/app-release.apk
npm run build:androidAt the moment we use react-native-permissions to request Android and iOS permissions. This is now a required peer dependency and needs to be installed in the app implementing the SDK:
npm i @biqprotocol/react-native react-native-permissionsThis is because Expo will not autolink a module if it is not present in the dependencies section of the react-native application.