Skip to main content

Prerequisites

Install dependencies

Configure polyfills

The react-native-quick-crypto library provides a polyfill for the crypto module needed by @solana/web3.js. 1. Create a polyfill.js file in your project root:
polyfill.js
2. Create an index.js entry point that imports the polyfill first:
index.js
3. Update package.json to use the new entry point:
package.json
The polyfill must be imported before any other code that uses @solana/web3.js.

Custom Development Build

MWA uses Kotlin native modules, so you must use a custom Expo development build instead of Expo Go. Update your package.json build scripts:

Next steps

Setup

Wrap your app with MobileWalletProvider and set up the useMobileWallet hook.
Last modified on July 21, 2026