This is a mobile app created for an interview test.
Framework: React Native (React Native CLI)
Version: 0.64.2
Setup the React Native CLI Development environment for your machine if you haven't already: Follow this guide
Now, follow the below steps in order to run the app:
-
Clone this repo using Sourcetree or using git:
git clone https://github.com/Cypherball/sendETH.git -
cd sendETH -
npm ito install node packages (use--forceargument if any dependency error occurs) -
cd ios && pod installto generate ios pod files (skip if building for android only on windows) -
cd ../traverse back to the root directory -
npx react-native startto start the metro server (keep running in terminal) -
react-native run-android(in separate/new terminal) to run app in android simulator. Before running android please open the android simulator to run the app -
react-native run-ios(in separate/new terminal) to run the app in ios simulator
- Sending Ether using Ropsten testnet
- Check Account's Ether Balance
- View All Transactions
- Transaction Status (Does not display pending transactions)
- Input Validation
- NOTE: You need to refresh manually after waiting for a few moments after sending a transaction, since the API does not immediately retrieve it.
- My testnet private key is hardcoded into the app which is visible in
./src/config/index.js - Ethers Library is used to send transactions between accounts and retreive account balance.
- Etherscan API is used to fetch the account's list of transactions.
- Validator Library is used for validations.
- React-Native-Paper Library is used for the UI.
