theta-client-react-native
v1.13.1
Published
This library provides a way to control RICOH THETA using.
Downloads
1,119
Readme
How to create React Native project
Prerequisite
Build theta-client.
$ gradlew publishToMavenLocal podPublishXCFrameworkSet the directory of theta-client to environment variable
THETA_CLIENT.$ export THETA_CLIENT=<path to theta-client>Build react-native wrapper
$ cd react-native $ sh ./mkpackage.shInstall react-native
Creating a project
Create a project using
react-native-cli, then add theta-client.$ npx react-native init YourProject --template react-native-template-typescript $ cd YourProject $ yarn add $THETA_CLIENT/react-native/packageSettings on android
- YourProject/android/build.gradle
- set
minSdkVersionto 26 or later.
- set
- YourProject/android/build.gradle
Settings on iOS
- YourProject/ios/Podfile
- Set
platform :iosto '15.0' or later. - Add pod of theta-client.
pod "THETAClient", :path => ENV["THETA_CLIENT"] + "/kotlin-multiplatform/build/cocoapods/publish/debug" - Set
- 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
Tips for Windows 11
- Convert your
mkpackage.shfile from Carriage Return Line Feed "CRLF" to Line Feed "LF" - Instead of running
sh mkpackage.shusebash mkpackage.sh
