Skip to main content
Complete guide to integrating Phantom Connect in a React Native app.

1. Install dependencies

If you’re using Expo, use npx expo install to ensure compatibility. For bare React Native projects, you can install the packages directly with npm.

2. Configure app scheme

Add your custom scheme to app.json:
For bare React Native projects, configure deep linking in your native project files. See React Native deep linking documentation for details.

3. Create the app entry point

The polyfill must be the first import:
The react-native-get-random-values import must be the very first import in your app’s entry point, before any other imports.

With Expo Router

Without Expo Router

4. Create the wallet screen

5. Configure Phantom Portal

  1. Go to phantom.com/portal
  2. Create or select your app
  3. Add your redirect URL (e.g., myapp://phantom-auth-callback) to redirect URLs
  4. Copy your App ID