Setting up Privy UIs
Before integrating Privy’s default UIs into your app, you must first ensure the necessary components and fonts are installed.
Custom Build Configuration
Using Privy UIs requires a custom build configuration for your React Native application. This is necessary to ensure that the Privy SDK can properly interact with the native components and libraries it relies on.
For detailed instructions, see the Custom Build Configuration guide.
Install Peer Dependencies
First, install the necessary peer dependencies:
Fonts
Install Font Packages
Install the following packages:
Load Fonts
Load the necessary fonts in your app’s root layout (typically in app/_layout.tsx
):
Load the necessary fonts in your app’s root layout (typically in app/_layout.tsx
):
Load the necessary fonts in your app’s root component (typically in App.tsx
):
PrivyElements Component
Privy’s default UIs in the React Native SDK are powered by the PrivyElements
modal component.
PrivyElements
once in your app.