Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@privy-io/expo

privy-bot44.4kApache-2.00.58.1TypeScript support: included

Expo client for the Privy Auth API

authentication, authorization, identity, privacy, privy, user data, react-native, expo, web3

readme

Blobby

@privy-io/expo

The Privy Expo SDK allows you to integrate Privy into a bare React Native or Expo app. With Privy, your app can authenticate your users across email, phone, social, and wallet login methods and securely create embedded wallets for them to take onchain actions.

Installation

Install along with peer dependencies using npm:

npx expo install expo-apple-authentication expo-application expo-crypto expo-linking expo-secure-store expo-web-browser react-native-passkeys react-native-webview @privy-io/expo-native-extensions @privy-io/expo

Install polyfills, these should be imported as early as possible in your application.

npm i --save fast-text-encoding react-native-get-random-values @ethersproject/shims

Dependencies for @privy-io/expo/ui

If you are using the @privy-io/expo/ui import, you will need to install the following dependencies:

npx expo install react-native-svg expo-clipboard react-native-qrcode-styled react-native-safe-area-context viem

Dependencies for @privy-io/expo/smart-wallets

If you are using the @privy-io/expo/smart-wallets import, you will need to install the following dependencies:

npx expo install viem permissionless

Usage

See Privy's Expo SDK guide for setup and usage.

Changelog

Our changelog contains the latest information about new releases, including features, fixes, and upcoming changes.

We use Semantic Versioning to track breaking changes.