Web3.js Reference
Interact with accounts and programs on the Solana network through the Solana JSON RPC API.
Install dependencies
- yarn
- npm
yarn add \
@solana/web3.js \
react-native-get-random-values \
react-native-url-polyfill \
@craftzdog/react-native-buffer
npm install \
@solana/web3.js \
react-native-get-random-values \
react-native-url-polyfill \
@craftzdog/react-native-buffer
Polyfills
Enable all of them in index.js
import 'react-native-get-random-values';
import 'react-native-url-polyfill/auto';
import {Buffer} from '@craftzdog/react-native-buffer';
global.Buffer = Buffer;