steemit / steem-js

Steem.js the official JavaScript library for Steem blockchain
https://www.npmjs.com/package/steem
MIT License
472 stars 225 forks source link

Steem not running in React Native environment #376

Open cutemachine opened 6 years ago

cutemachine commented 6 years ago

Expected behavior

One should be able to use the steem lib in a React Native app by just importing steem.

Actual behavior

One gets the error message Your browser does not support window.crypto.

How to reproduce

I understand that steem is using some node base libs which do not run on React Native out of the box. But a package like node-libs-react-native normally resolves the issue.

Environment information

I'm using node-libs-react-native and steem in my React Native app. You can find the code for the app on GitHub.

BartolomeoItaliano commented 6 years ago

Hi, I've created steemJs hard fork named: "steem-js-refactored", I am not sure but probably i resolve that issue there: try to use it.

npm install steem-js-refactored

cutemachine commented 6 years ago

Thanks for the quick response. I will check it out.

sweet-smail commented 5 years ago

@cutemachine @BartolomeoItaliano I introduced the steem-js-refactored package. I want to know how to solve this problem.

adc 3n4utqbtc_80j 02

BartolomeoItaliano commented 5 years ago

Hmm... I've never experienced this issue. Could you provide me steps to reproduce it? I will try to fix it for you.