/edge-react-gui

Edge Wallet React Native GUI for iOS and Android

Primary LanguageJavaScriptBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Edge Wallet

A multicurrency mobile wallet for Bitcoin, Ethereum, Litecoin, and Bitcoin Cash

Edge Wallet Screenshots

Edge Wallet is:

  • simple
  • secure
  • private
  • decentralized
  • multi-currency
  • cross-platform
  • mobile first
  • open source

Requirements

MacOS

Xcode >= 9

Getting Started

Install nodejs (v 8.4+) and npm (v 5.3+)

https://nodejs.org/en/download/

Install yarn

https://yarnpkg.com

Install React Native CLI

npm install -g react-native-cli

Checkout develop branch & install node_modules

cd edge-react-gui
yarn --network-concurrency 1

The --network-concurrency 1 seems to work around a concurrency bug in yarn.

Android NDK Setup

(MacOS) If the NDK is already installed from Android Studio, it should be in /Users/[user]/Library/Android/sdk/ndk-bundle. If not, download and unzip the NDK from https://developer.android.com/ndk/index.html

Set ANDROID_NDK_HOME environment variable to the path of the NDK. ie

export ANDROID_NDK_HOME=/Users/bob/Library/Android/sdk/ndk-bundle

Android Recommended Versioning & Configuration

For best results, please consider using the following versions (up-to-date as of 2018-05-11)

  • Gradle version 4.1
  • Android Plugin version 3.0.1
  • Compile SDK version API 27
  • Build Tools version 25.0.3
  • Android SDK API 23 Revision 3 through API 27 Revision 1
  • Yarn version 1.6.0
  • Node version 9.5.0
  • Java NDK version 15c
  • Java JDK version 8u171

Add API key in env.json

Get an API key from https://developer.airbitz.co by scanning the QR code with your Airbitz wallet (https://airbitz.co/app) Copy the env.example.json to env.json and change the AIRBITZ_API_KEY to the API key you received from developer.airbitz.co.

Run the app in debug mode

react-native run-ios or react-native run-android


Deploying

Android

npm run android:release-install

Debugging

For debugging, we recommend using React Native Debugger

MacOS

brew update && brew cask install react-native-debugger

iOS Simulator
⌘ + d (command + d)
Select "Debug JS Remotely"

Windows / Linux

https://github.com/jhen0409/react-native-debugger/releases

GenyMotion Android Emulator
⌘ + m (command + m)
Select "Debug JS Remotely"

Contributing

Please follow the coding conventions defined in Edge Conventions