/react-native-blockchain-poll

Source code of bringing-the-blockchain-to-react-native blog post.

Primary LanguageJavaScript

react-native-blockchain-poll

code style: prettier

This is just in an early stage and can fail.

A simple mobile decentralized app ( dApp ) done as a prototype for React Native and expo to handle cryptopunks ranking on the ethereum blockchain.

Overview

  • It's basically a mobile dapp for iOS and android done using react-native and web3.

  • It uses flow as a javascript typechecker and babel-preset-react-native-web3 to polyfill crypto

Getting started in localhost

Configure Ropsten Testnet Network mnemonic key in App.js

# Install dependencies
yarn

# and from a separate shell Run the mobile app
exp start

For more information about configuring the cross platform app look into the React Native and expo getting started guides.

React Native dependencies

  • victory-native Victory bar Charts
  • react-navigation to navigate among scenes
  • among other cool ones such as react-native-pull-to-refresh and react-native-star-rating

Ethereum dependencies

Expo

expo

Sample

playing with the app

Ropsten

More info

  • For more info about the ethereum configuration, see the following gist

Contributing

Intended for personal purposes stars ✭ and issue reporting, welcome!

License

MIT @ zetta