kmyw / React-Native-Dapp

a ETH wallet tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

This is because React Native uses JavaScriptCore execution environment, and depending on how the Node standard library APIs like buffer, crypto or stream are mocked or implemented for the React Native app, it might need to link some native dependencies; therefore, you may need to relies on a library web3go with golang, and then you can use web3 in your react native dapp.

  • Install web3go
git clone https://github.com/bcl-chain/web3.go.git
  • Use gomobile compile web3go to generate framework and arr for ios android
// generate framework
gomobile bind -target=ios ./github.com/bcl-chain/web3.go/mobile

// generate arr jar
gomobile bind -target=android ./github.com/bcl-chain/web3.go/mobile
  • Link framework and arr jar to ios android

  • Use ganache-cli to deployment of local test Ethernet workshop

Getting Started

yarn
react-native run-android
react-native run-ios
  • This dapp have generate Hardware Wallet, import wallet with privateKey, import wallet with mnemonic, sendTransaction(contain ERC20), getBalance(contain ERC20)

About

a ETH wallet tool


Languages

Language:Objective-C 75.9%Language:JavaScript 13.0%Language:Java 7.6%Language:Ruby 1.8%Language:Python 1.5%Language:C 0.2%