Newer version available. Please see 5.0.5
How To Add bitcoinjs-lib Version 4.0.3 To A React Native Project
Add/Link the following dependencies:
yarn add [email protected] react-native-randombytes buffer-reverse buffer@5
yarn add --dev rn-nodeify
react-native link react-native-randombytes
- Add the following postinstall to your script in package.json:
"postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm --hack && cd node_modules/bs58 && yarn add [email protected] && cd ../../"