t3chnoboy / amazon-product-api

:credit_card: Amazon Product Advertising API client
365 stars 104 forks source link

Unknown Module crypto #64

Open xstable opened 7 years ago

xstable commented 7 years ago

Is there a chance to get this to run for react-native?

t3chnoboy commented 7 years ago

Hi @xstable! We can try fixing this error by using JS implementation of crypto https://github.com/crypto-browserify/crypto-browserify or by running this https://github.com/mvayngrib/rn-nodeify. I'm not sure if our dependencies xml2js and request are compatible with react native though. Sorry, I can't test react-native at this moment, so can you try fixing it? Let me know if you need any help.

xstable commented 7 years ago

I'm a newbe to react and react-native. Currently I won't be able to fix this.

renso3x commented 5 years ago

any fixes for this in react-native?