steem-js icon indicating copy to clipboard operation
steem-js copied to clipboard

Steem not running in React Native environment

Open cutemachine opened this issue 6 years ago • 4 comments

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.

cutemachine avatar May 08 '18 07:05 cutemachine

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

BartolomeoItaliano avatar May 08 '18 16:05 BartolomeoItaliano

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

cutemachine avatar May 08 '18 18:05 cutemachine

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

adc 3n4utqbtc_80j 02

sweet-smail avatar Sep 28 '18 09:09 sweet-smail

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

BartolomeoItaliano avatar Sep 29 '18 23:09 BartolomeoItaliano