Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Your React Native project might require polyfills for certain global objects. The requirements differ based on your Expo SDK version.
Expo SDK 54 and above have built-in support for most polyfills.Expo SDK 53 and below require additional polyfills as described in the sections below.
For Expo SDK 54 and Above
Installation
npm install @react-native-anywhere/polyfill-base64
Include the following code in your project’s entry point:
import '@react-native-anywhere/polyfill-base64';
For Expo SDK 53 and Below
Installation
npm install text-encoding react-native-get-random-values buffer @react-native-anywhere/polyfill-base64
Include the following code in your project’s entry point to set up the polyfills:
import 'react-native-get-random-values';
import '@react-native-anywhere/polyfill-base64';
import { Buffer } from 'buffer';
// Polyfill for @dynamic-labs/solana-extension
global.TextEncoder = require('text-encoding').TextEncoder;
global.Buffer = Buffer;
Additional Requirements
If you’re using ZeroDev, also please refer to the ZeroDev polyfills section.