New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage in React Native #139
Comments
Same issue. We manage to install react-native-crypto but we've got a new error : |
@YannisDC @Loyz07 I am also working around this. I have used this hack: https://github.com/mvayngrib/rn-nodeify and it seems to work with "browserifying" node's crypto library, also web3 and its dependencies. However, I am still having issues with eth-lightwallet. I have to import from the Also exploring this alternative: https://github.com/philikon/ReactNativify |
@Loyz07 Were you able to sort out the undefined BufferUtil, I am having the same issue. Seems to be a problem with the Some people have had success by hacking the file as such:
However, this is not working for me... |
@seanavery No sorry. It seems to be a problem with rn-nodeify that doesn't polyfill correctly Buffer module. We are working on an other solution with Web3J and a native module since no solution is found for this issue. |
Any workarounds found for this? Currently seeing the same issue as original post |
I'm new to Since
Or whatever combination of packages you want. If you want to install all node packages, you can run:
As @Loyz07 noted, this will not resolve the
I believe the above is actual an aliased version of react-native-crypto, which you will also need to have installed and linked. |
Since crypto doesn't work in react native apparently I tried using react-native-crypto and installed it as suggested.
However I get the same error saying: Unable to resolve module
crypto
from<PROJECTROOT>/node_modules/bitcore-lib/lib/crypto/hash.js
Is there any way to circumvent this?
The text was updated successfully, but these errors were encountered: