You are viewing a single comment's thread from:

RE: Hive Keychain DHF - Week 7

in #keychain6 years ago

I'd be interested to know how you are dealing with crypto actions on mobile with react native. I'm trying to build my app on mobile and using either Hive-JS or Hive-Tx won't work as they rely on the node standard libraries (which react native doesn't support). I'd love any advice you have on how to get around this problem.

Sort:  

Hi @revo!
We're using dHive and it works perfectly so far.
For other crypto operations you can use react-native-crypto module instead of Node's crypto.
In the case you want to use another module that itself refers to Node's crypto it gets more problematic but you can use Babel to change the requests (ref. here). I am currently trying to implement this on another project but it's a bit hacky.
You can check the mobile Keychain code in here for more insight.

EDIT :

Just managed to use a Node module using crypto on RN actually, this comment is especially useful.

Thanks for the links @stoodkev. I check all those out and see what I can make happen.