> ## Documentation Index
> Fetch the complete documentation index at: https://www.dynamic.xyz/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Polyfills

<Card title="Recommended: JavaScript SDK for React Native" icon="react" color="#4779FE">
  While this SDK is still supported, we recommend using newer [JavaScript SDK](/docs/javascript/reference/react-native-quickstart), which is optimized for React Native, but also comes with a host of other benefits.
</Card>

Your React Native project might require polyfills for certain global objects. The requirements differ based on your Expo SDK version.

<Note>
  **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.
</Note>

## For Expo SDK 54 and Above

**Installation**

```bash theme={"system"}
npm install @react-native-anywhere/polyfill-base64
```

Include the following code in your project's entry point:

```ts theme={"system"}
import '@react-native-anywhere/polyfill-base64';
```

## For Expo SDK 53 and Below

**Installation**

```bash theme={"system"}
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:

```ts theme={"system"}
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](/docs/react-native/reference/wallets/account-abstraction#events-polyfill) section.
