Newer version available. Please see 5.1.1
How To Add bitcoinjs-lib Version 5.0.5 To A React Native Project
Add/Link the following dependencies:
yarn add bitcoinjs-lib@5.0.5 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 base-x@3.0.4 && cd ../../"