Overview
The ethereum-react-native-boilerplate is a React Native library that provides components and hooks for fast building of decentralized applications (dApps) without the need for running your own backend. It utilizes various technologies such as create-react-native-dapp, WalletConnect, and react-moralis to simplify the development process.
Features
- Create-react-native-dapp: Bootstraps the project to provide a solid foundation for building Ethereum mobile dApps.
- WalletConnect integration: Includes a slightly modified version of WalletConnect v1 for authentication purposes.
- React-moralis: Utilizes react-moralis for React hooks integration.
- Moralis Web3 API: Offers a range of components that do not require an active web3 provider and instead use Moralis Web3 API, which supports popular blockchains and test networks.
- Active community support: The project has a super active community that is always ready to help and provide assistance.
Installation
To install the ethereum-react-native-boilerplate, follow these steps:
- Make sure you have Xcode installed on your machine if you wish to run the app on iOS, and Android Studio for Android.
- For M1 users, access the apps folder, right click on Xcode, select “Open Using Rosetta”.
- Connect a physical phone device and open Terminal/CMD.
- Run
adb devicesin the terminal to check if your Android device ID is listed. - Install your preferred wallet on your device (e.g., Metamask, Trust Wallet).
- For iOS, run either
react-native run-iosornpx react-native run-ios. - For Android, run either
react-native run-androidornpx react-native run-android.
Summary
The ethereum-react-native-boilerplate is a powerful library that simplifies the development of Ethereum mobile dApps by providing pre-built components and hooks. It integrates with popular tools like WalletConnect and react-moralis, allowing developers to quickly build applications without the need for running their own backend. With an active community providing support, this library is a valuable resource for anyone looking to build Ethereum dApps using React Native.