This repository will host all information about using blockstack with react native.
Currently it contains an example that uses the React Native Blockstack component directly. The component is still under development and only support Android. It will be published under the same react-native-blockstack. The source code of the component is located in BlockstackSDK
The repository also contains a playground for developing the above mentioned component (using a native module for Blockstack with the Blockstack Android SDK in the example)
-
Clone this repo
git clone https://github.com/blockstack/blockstack-react-native.git
-
Open
example-sdk-module/android/build.gradle
in Android Studio You should see the two modules:app
: the Android code of the example,.._.._BlockstackSDK
: the Android code of the React Native Blockstack component
-
Open the
example-sdk-module/Apps.js
file in Android Studio if you want to change the app. -
Open a terminal on your desktop.
-
Change to the
example-sdk-module
directory.cd to `example-sdk-module`
-
Run
react-native run-android