Your React Native project might require polyfills for certain global objects. Install the necessary polyfills and set them up as follows 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;
If you’re using ZeroDev, also please refer to the ZeroDev polyfills section.