npx create-react-native-dapp
create-react-native-dapp
is an npx
utility to help quickly bootstrap React Native
Our goal is to help create a sustainable open source ecosystem for Web3
in React Native by providing a dependable common runtime which we can buidl upon and extend together.
π₯ Features
π Bootstrapped by Expo.- Easily take advantage of Expo's high quality, well-supported and well-documented library architecture.
- Supports Android, iOS and the Web.
π· Served with Hardhat.- Your generated app comes with a simple example contract which you can deploy, test and interact with directly.
π Powered by WalletConnect.- Connect to secure wallets such as Rainbow
π out of the box!
- Connect to secure wallets such as Rainbow
ποΈ It's typed, and pretty.π And it's ready to go.- Built applications come pre-packaged with
.env
support usingreact-native-dotenv
and companion tests for your contracts. - Projects are initialized using deep linking so external navigation is a breeze.
- Built applications come pre-packaged with
To get started,
First, please make sure you've logged into expo-cli
.
npx create-react-native-dapp
This will walk you through the creation of your Ethereum-enabled application, which works on Android, iOS and the Web.
To start the app, you can:
cd my-react-dapp
yarn ios # android, web
To programmatically invoke,
create-react-native-dapp
also exports a simple interface for the programmatic allocation of new projects.
import { create } from 'create-react-native-dapp';
(async () => {
const name = 'my-react-dapp';
const bundleIdentifier = 'io.github.cawfree.dapp';
const uriScheme = 'myapp'; // navigate using myapp://some/path
const { dir } = await create({
name,
bundleIdentifer,
packageName: bundleIdentifier,
uriScheme,
});
})();