Skip to main content
The Phantom Connect React Native SDK provides hooks for connecting users with OAuth authentication and secure key handling.
Learn about Phantom Connect: For details about authentication flows, login, account selection, and session management, see the Phantom Connect guide.
The SDK includes a built-in bottom sheet Connect modal that handles sign-in and wallet connection. Use the useModal() hook to open it:
Modal features:
  • Sign-in with Google and Apple
  • Built-in error handling and loading states
  • Works across devices and environments
  • Handles the full connection flow and returns a ready-to-use wallet session
  • Presented as a bottom sheet optimized for mobile interaction

useConnect hook (manual connection)

Authentication providers

The React Native SDK supports Google and Apple OAuth providers. React Native uses system browser authentication (Safari on iOS, Chrome Custom Tab on Android) to complete the sign-in flow. The connect() method accepts a provider parameter to specify how users should authenticate. Available providers are configured in the PhantomProvider config:
Then use the connect() method with one of the enabled providers:

Checking connection status

Use the useAccounts hook to check if a wallet is already connected:

Handling connection errors

When a connection fails, the connect() promise rejects with an error.