Skip to content

Instantly share code, notes, and snippets.

View cody0704's full-sized avatar
🤮
wubba lubba dub dub

Cody Chen cody0704

🤮
wubba lubba dub dub
View GitHub Profile
@cody0704
cody0704 / bitcoinjs-lib_Setup.md
Created February 15, 2024 00:26 — forked from coreyphillips/bitcoinjs-lib_Setup.md
How To Add bitcoinjs-lib To A React Native v0.60+ Project

How To Add bitcoinjs-lib To A React Native v0.60+ Project

Add/Link the following dependencies:

  • yarn add bitcoinjs-lib ecpair @bitcoin-js/tiny-secp256k1-asmjs react-native-randombytes buffer readable-stream
  • yarn add --dev rn-nodeify
  • cd ios && pod install && cd ..
  • Add the following postinstall to your script in package.json: "postinstall": "rn-nodeify --install buffer,stream,assert,events,crypto,vm,process --hack"

Install any remaining dependencies and run postinstall.