Skip to content

biqProtocol/biq-sdk-react-native

Repository files navigation

biq-sdk-react-native

BIQ SDK for React Native (Expo module)

Development

Expo module

Inside project's root:

  1. Install dependencies
npm install
  1. Build plugin - run after making changes to plugin in /plugin
npm run prepare
  1. Build module and watch for changes
npm run build

Example app

Inside /example folder:

  1. Install dependencies
npm install
  1. Configure Expo modules - run after making changes to module's plugin or /example/app.json
npx expo prebuild

Might also require pod reinstalation for iOS:

cd ios
pod install
  1. [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
  1. [optional] Run on Android device
npx expo run:android --device
  1. [optional] Build Android apk in /example/android/app/build/outputs/apk/release/app-release.apk
npm run build:android

Requesting iOS permissions

At 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-permissions

This is because Expo will not autolink a module if it is not present in the dependencies section of the react-native application.

About

BIQ SDK for React Native

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors