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 toapp.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:With Expo Router
Without Expo Router
4. Create the wallet screen
5. Configure Phantom Portal
- Go to phantom.com/portal
- Create or select your app
- Add your redirect URL (e.g.,
myapp://phantom-auth-callback) to redirect URLs - Copy your App ID