Prerequisites
Before integrating Para into your React Native app, make sure you have:- An API key — create your account at the
- A React Native project — bare workflow or Expo development build (managed workflow is not supported)
Install
Set Up the Provider
Import the crypto shim at your app’s entry point, then wrap your app withParaProvider and a React Query QueryClientProvider:
App.tsx
If you’re using a legacy API key (one without an environment prefix), pass
env explicitly: paraClientConfig={{ apiKey: "YOUR_API_KEY", env: Environment.BETA }}.Authenticate a User
Use theuseAuthenticateWithEmailOrPhone hook to sign the user in. Sign-in doesn’t say whether an email has an account until the code is entered, so every user enters the code on a Para-hosted page. Open the page in an in-app browser when its URL appears, and pass your app’s deep link as nativeCallbackUrl so the page can return to the app:
AuthScreen.tsx
supportsAuthV2: true in the provider config opts into the current sign-in flow that this example uses (requires @getpara/react-native-wallet 3.23.0 or later). For native passkey setup, apps that can’t set it yet, and every Para-hosted page URL, see the Email & Phone Login and Add Passkeys guides.The Para-hosted pages return to your app through its URL scheme. Set one up as shown in , and use the same scheme in
APP_REDIRECT_URL.Sign a Message
Once authenticated, use theuseSignMessage hook:
SignScreen.tsx
Need an API Key? Head to the to create your account and get your API key.