A mobile TurtleCoin wallet
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
android Fix app deploy failing Jan 21, 2019
assets/img Spinner splash screen Jan 22, 2019
ios Pin input Jan 21, 2019
src Spinner splash screen Jan 22, 2019
.babelrc Initial commit Dec 26, 2018
.buckconfig Initial commit Dec 26, 2018
.flowconfig Initial commit Dec 26, 2018
.gitattributes Initial commit Dec 26, 2018
.gitignore Adding C++ native code Jan 15, 2019
.watchmanconfig Initial commit Dec 26, 2018
LICENSE Add license Dec 27, 2018
README.md Add screenshot Jan 21, 2019
app.json Update name Dec 27, 2018
index.js Shuffle some files around Dec 27, 2018
package.json Pin input Jan 21, 2019
shim.js Update icon Dec 27, 2018
yarn.lock Pin input Jan 21, 2019


ton-chan - A mobile, native TurtleCoin wallet



  • Clone the repo:

git clone https://github.com/zpalmtree/ton-chan.git

cd ton-chan

  • Install yarn if you don't have it already:

npm install -g yarn

  • Install the dependencies:

yarn install

  • Next, we need to setup the Android JDK and development environment.

First we need to install the Android JDK (Version 8!).

  • Ubuntu - sudo apt-get install default-jdk
  • Arch Linux - pacman -S jdk-openjdk

Next, lets install Android Studio.

  • Ubuntu - https://askubuntu.com/a/941222/764667
  • Arch Linux - pacaur -S android-studio (It's in the AUR, feel free to use your favourite package manager or install manually.)

Next, we need to run the android studio setup, and set some path variables. This is a bit complicated, so I'm going to hand off to the facebook guide here: https://facebook.github.io/react-native/docs/getting-started#1-install-android-studio

Skip the 'Creating a new application' header, and continue on to 'Preparing the Android Device'. Run android-studio . in this directory to import the project.

Once you have your virtual device setup, you can launch the app itself.

  • Run the program:

react-native run-android

If you get an error about 'Unsupported major.minor version', you may need to set JAVA_HOME to point to the correct jdk.

For example, export JAVA_HOME=/usr/lib/jvm/java-8-openjdk/jre/


You probably want to run react-native log-android so you can read the console output, and have an easier log of what's going on as you're developing. Errors will get printed to the device, but console.log won't, and it's a little hard to read.

You probably also want to enable hot reloading. Hit "Ctrl-M" in your emulator, or type adb shell input keyevent 82 to open the developer menu, and enable both Live Reload and Hot Reloading.

Running natively on your Android device

Follow this guide.

Building an APK

Follow this guide.

Once you have finished:

cd android

Compile the APK:

./gradlew assembleRelease

You may need to uninstall a previous version of the app:

adb -d uninstall "com.tonchan"

Install the APK on your device:

./gradlew installRelease

If it all works, you can then upload to the play store.


Modifying icon

Replace assets/img/icon.png with your icon image. Make sure it is 1024x1024.

Run npm install -g yo generator-rn-toolbox (You may need to run this with sudo)

Run yo rn-toolbox:assets --icon assets/img/icon.png --force

When it asks for the name of your react-native project, enter TonChan (Not ton-chan!)

Renaming app

Run npm install -g react-native-rename (You may need to run this with sudo)

Run react-native-name your-new-project-name from this directory. (Obviously, replace with the desired name)

This might confuse the build system. You probably should do this before installing.


Edit config.js. The fields should be self explanatory. Make sure to recompile.