mobilenftminter
v1.1.5
Published
A ready-to-go template Solana React Native dApp with dependencies installed and basic React UI components. It provides an interface to connect to locally installed wallet apps (that are MWA-compatible), view your account balance on devnet, and request an
Downloads
114
Readme
Solana Mobile dApp Scaffold
A ready-to-go template Solana React Native dApp with dependencies installed and basic React UI components. It provides an interface to connect to locally installed wallet apps (that are MWA-compatible), view your account balance on devnet, and request an airdrop of SOL.
This React Native dApp is only fully functional on Android.
Featured Libarires
- Mobile Wallet Adapter for connecting to wallets and signing transactions/messages
- web3.js for constructing transactions and an RPC
connection
client.
Prerequisites
If you haven't setup a React Native development environment for Android, you'll need to do that first. Follow the Prerequisite Setup Guide.
Follow the guide to make sure you:
- setup your Android and React Native development environment.
- have an Android device or emulator.
- install an MWA compliant wallet app on your device/emulator.
Usage
- Initialize project template
npx react-native init MySolanaDapp --template https://github.com/solana-mobile/solana-mobile-dapp-scaffold.git
- Install dependencies
yarn install
ornpm install
- Launch the app on your Android device/emulator
npx react-native run-android
Troubleshooting
TypeError: cli.init is not a function
: This during template initialization means you have an old version of React Native CLI. This template only works with the new CLI. You can uninstall and reinstall it as directed here.Looks like your iOS environment is not properly set
: You can ignore this during template initialization and build the Android app as normal. This template is only compatible with Android.