UNPKG

@privy-io/expo

Version:

Expo client for the Privy Auth API

46 lines (27 loc) 1.81 kB
![Blobby](https://avatars.githubusercontent.com/u/81824329?s=200&v=4) # @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](https://docs.npmjs.com/cli/v10/configuring-npm/package-json#peerdependencies) using `npm`: ```sh 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](https://developer.mozilla.org/en-US/docs/Glossary/Polyfill), these should be imported as early as possible in your application. ```sh 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: ```sh 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: ```sh npx expo install viem permissionless ``` ## Usage See Privy's [Expo SDK guide](https://docs.privy.io/basics/react-native/setup) for setup and usage. ## Changelog Our [changelog](https://docs.privy.io/changelogs/react-native) contains the latest information about new releases, including features, fixes, and upcoming changes. We use [Semantic Versioning](https://semver.org/) to track breaking changes.