React native
Installation
Requirements
- A React Native project using the latest version
- iOS and Android platform support (Web is not supported)
Installation
Core Dependencies
Install the Privy React Native SDK and its peer dependencies:
Required Polyfills
Install the necessary polyfills:
If your app uses the Expo bare workflow (“React Native without Expo”), also run:
Configure Polyfills
Create an entrypoint.js
file and update your package.json
:
entrypoint.js
package.json
Create an entrypoint.js
file and update your package.json
:
entrypoint.js
package.json
Import the polyfills at the root of your application:
If you’re using the @solana/web3.js
package, install the buffer dependency:
And add this code after importing react-native-get-random-values
: