entrypoint.js
file and update your package.json
:@solana/web3.js
package, install the buffer dependency:react-native-get-random-values
:Metro build configuration
metro.config.js
file to customize the Metro bundler settingsbundler
setting for Typescript’s moduleResolution
metro.config.js
like so:tsconfig.json
like so: