bitsharesjs
bitsharesjs copied to clipboard
Cannot be used in "react native", will appear ”Unable to resolve module `stream`” and “can't find variable Buffer”
I'm working on a phone app to make "bitshares" available on the phone, but when I execute "npm install bitsharesjs," the program crashes every time I use "import {PublicKey} from / bitbitshares / s / es'".I think it may be that the "react native" running environment is inconsistent with the browser, resulting in incompatibility, which is my personal view, I hope the author can answer my question, thank you very much.
Any update here?
@XJH0415 Same Question as @lesharadkovich 's.
@XJH0415 @lesharadkovich
The reason:
Buffer is a core node module which bitsharesjs depends on.
Solution:
npm install rn-nodeify
./node_modules/.bin/rn-nodeify --install --hack