ethereum-react-native-boilerplate

React Native components and hooks for fast building dApps without running own backend

This project is using:

There are many components in this boilerplate that do not require an active web3 provider, they use Moralis Web3 API. Moralis supports the most popular blockchains and their test networks. You can find a list of all available networks in Moralis Supported Chains

Please check the official documentation of Moralis for all the functionalities of Moralis.

Check the corresponding docs for additional information and help.

App Home WalletConnect Authentication
Github Demo 1 Github Demo 2

⭐️ Star us

If this boilerplate helps you build Ethereum mobile dapps faster – please star this project, every star makes us very happy!

🚀 Quick Start

📄 Clone or fork ethereum-react-native-boilerplate:

git clone https://github.com/ethereum-boilerplate/ethereum-react-native-boilerplate.git

💿 Install the expo CLI globally:

npm i -g expo-cli

💿 Install all dependencies:

cd ethereum-react-native-boilerplate
yarn install 

🚴‍♂️ Run your App:

  • Web: yarn web
  • IOS: yarn ios
  • Android: yarn android

🧭 Table of contents

🏗 Ethereum Components

🛠 The ready for use react-native-components are located in frontend/Components. They are designed to be used anywhere in your dApp.

<CryptoAuth />

📒 <CryptoAuth /> : Easy web3 authentication via WalletConnect.

<NativeBalance />

Options:

  • chain: chain to fetch data from.

<ERC20Balance />

📨 <ERC20Balance /> : Displays all ERC20 Balances with Price.
Options:

  • chain: chain to fetch data from.

<Assets />

💰 <Assets /> : Screen to display all Chain ERC20 and NAtive Assets with Prices

<RecentTransactions />

💰 <RecentTransactions /> : Screen to display all Chain ERC20 Transactions

<TransactionDetails />

<TransactionDetails /> : Modal to display all ERC20 Transaction related content

<Header />

Displays The user address that is copyable

🧰 Ethereum Hooks

useTokenPrice()

useERC20balance()

useERC20Transfers()

GitHub

View Github