Replies: 1 comment 1 reply
-
Hey @exakoss, Can you try the solution mentioned in #612 (comment) ? You can also see: #1503 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a mobile ETH wallet with React Native and Expo and got stuck on a very frustrating issue.
First I generate a wallet with ethers.Wallet.createRandom().connect(provider). This works as intended and takes around 6-7 seconds on both React and React Native. However, when I collect a password from a user and run wallet.encrypt() on React Native it takes around 4 minutes to complete, so my app gets stuck on the password confirmation screen and becomes irresponsive. I could proceed to the portfolio screen and let the encryption run in the background, but this seems like a non-desirable workaround compared to the same operation on React, which takes around 5-7 seconds. Is there a particular reason why this method gets so slow on React Native?
My specs:
-React Native: 0.63.2
-Expo: ~40.0.0
-Ethers: ^5.0.32
-@ethersproject/shims: ^5.0.11
-react-native-get-random-values: ^1.6.0
Beta Was this translation helpful? Give feedback.
All reactions