theta-ble-client-react-native
v1.4.0
Published
This library provides a way to control RICOH THETA using
Readme
theta-ble-client-react-native
This library provides a way to control RICOH THETA using BLE.
Prerequisite
Build react-native wrapper
theta-ble-client$ cd react-native react-native$ yarn react-native$ yarn prepareInstall react-native
Creating a project
Create a project using
react-native-cli, then add theta-ble-client.$ npx react-native@latest init YourProject $ cd YourProject $ yarn add [theta-ble-client directory]/react-nativeSettings on android
- YourProject/android/build.gradle
- set
minSdkVersionto 26 or later.
- set
- YourProject/android/gradle.properties
- This library supports the New Architecture only. Set
newArchEnabled=true(required; without it, native modules fail to register at runtime).
- This library supports the New Architecture only. Set
- YourProject/android/build.gradle
Settings on iOS
- YourProject/ios/Podfile
- Set
platform :iosto '15.1' or later.
- Set
- This library supports the New Architecture only. Do not set
RCT_NEW_ARCH_ENABLED=0; the New Architecture is enabled by default since React Native 0.76.
- YourProject/ios/Podfile
Building and execution
$ cd YourProject $ yarn install $ yarn run android OR $ yarn run iosYou can execute metro bundler on other terminal in advance.
$ yarn start
