Skip to content

Latest commit

 

History

History
 
 

example-react-native-app

Example React Native dApp

This demonstrates how you can use the mobile wallet adapter protocol in a React Native app.

example-react-native-app.mp4

Features

  • Authorize the web app for use with a native mobile wallet app.
  • Record a message of your choosing on-chain, using the Memo program.
  • Sign a message of your choosing.
  • Request an airdrop of SOL on devnet.

Prerequisites

  1. Set up the Android development environment by following the environment setup instructions for your OS.
  2. Install at least one mobile wallet adapter compliant wallet app on your device/simulator. You can build and install fakewallet for testing purposes.

Quick Start

Android

  1. Install dependencies and build the client libraries locally with yarn.
  2. Start the React Native packager, build the application, and start the simulator with yarn android.

Development

After making changes to any of the client libraries in js/packages/ you will need to re-run yarn in this directory. This will rebuild the client libraries and copy their build artifacts into the node_modules/ folder of this example app.