Skip to content
This repository has been archived by the owner on Mar 12, 2022. It is now read-only.

Latest commit

 

History

History
57 lines (40 loc) · 1.55 KB

README.md

File metadata and controls

57 lines (40 loc) · 1.55 KB

RGB demo application

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.

Common requirements

Common build

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

Android

Requirements

  • Java SE Development Kit (JDK) 8
  • Android development environment (Android Studio, SDK, AVD)

Build and run

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).

iOS

Requirements