Overview
create-react-native-dapp is an npx utility that helps developers quickly bootstrap React Native applications with access to the Ethereum Blockchain. It aims to create a sustainable open-source ecosystem for Web3 in React Native by providing a dependable common runtime that can be extended and built upon.
Features
- Bootstrapped by Expo: Takes advantage of Expo’s high-quality, well-supported, and well-documented library architecture.
- Supports Android, iOS, and the Web: Allows developers to build applications that work seamlessly on multiple platforms.
- Served with Hardhat: Comes with a simple example contract that can be deployed, tested, and interacted with directly.
- Powered by WalletConnect: Connects to secure wallets such as Rainbow out of the box.
- Typed and pretty: Pre-configured with TypeScript to help write scalable applications. Integrated with prettier and husky for enforcing coding standards.
- Ready to go: Built applications come pre-packaged with .env support using react-native-dotenv and companion tests for contracts.
- Easy external navigation: Projects are initialized using deep linking, making external navigation effortless.
Installation
To get started, make sure you have logged into expo-cli. This utility will guide you through the creation of your Ethereum-enabled application, which works on Android, iOS, and the Web. To start the app, follow these steps:
- Run
npx create-react-native-dappto initialize the project. - Follow the prompts to configure your project and customize settings.
- Once the setup is complete, run
expo startto start the application.
Summary
create-react-native-dapp is a helpful utility for quickly setting up React Native applications with Ethereum Blockchain access. It leverages Expo’s architecture, supports multiple platforms, and integrates seamlessly with Hardhat and WalletConnect. With pre-configured TypeScript and enforced coding standards, developers can build scalable applications. The project initialization process is straightforward, and the utility comes with companion tests and .env support for easy deployment.