This demonstrates how you can use the mobile wallet adapter protocol in a React Native app.
example-react-native-app.mp4
- 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.
- Set up the Android development environment by following the environment setup instructions for your OS.
- Install at least one mobile wallet adapter compliant wallet app on your device/simulator. You can build and install
fakewalletfor testing purposes.
- Install dependencies and build the client libraries locally with
pnpm install. - Start the React Native packager, build the application, and start the simulator with
pnpm android.
After making changes to any of the client libraries in js/packages/ you will need to re-run pnpm install in this directory. This will rebuild the client libraries and copy their build artifacts into the node_modules/ folder of this example app.