This React Native project has the purpose to show the capabilities of the RGB Node & SDK and to provide a concrete example of integration of the library in a mobile application.
For detailed and platform-dependent setup instructions see the official React Native documentation.
- Node 8.3 or newer
From the project root, run:
$ npm install
This will install the React Native command line interface and other necessary Node dependencies.
Start Metro, a JavaScript bundler for React Native, by running:
$ npx react-native start --port 8081
- Java SE Development Kit (JDK) 8
- Android development environment (Android Studio, SDK, AVD)
Build the rgb-node android bindings by following this instructions and then copy the generated archive inside this project:
$ mkdir -p android/app/libs
$ cp <path_to_rgb-node_project>/ffi/android/library/library/build/outputs/aar/library-debug.aar android/app/libs/library-debug.aar
Open the android project from Android Studio
(File -> Open... -> <path_to_this_project>/android
),
build it (Build -> Make project
) and
run the app (Run -> Run 'app'
or npx react-native run-android
).
- Mac
- Watchman
- Xcode