Open ldealmei opened 3 years ago
I also get those errors when using the library. Here is a screenshot of the Debugger output in Firefox:
The first line is interesting:
isomorphic-webcrypto cannot ensure the security of some operations!
Install and configure react-native-securerandom or expo-random
If managed by Expo, run 'expo install expo-random'
This file uses isomorphic-webcrypto
and this could cause problems. I installed expo-random
(as suggested by the log output) but that did not solve the issue.
@ldealmei do you already found a solution? I will post something if I have any update on that.
This is what worked for me:
First I checked, if I have more than one react-native version installed (with npm ls react-native
).
This was my output:
I set my react-native version in the package.json from 0.64.3
to 0.66.3
so it is identical to the other versions. I also upgraded all the other react packages and typescript to the latest version.
Those are my dependencies now:
"dependencies": {
"expo": "43.0.3",
"expo-status-bar": "1.1.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-native": "0.66.3",
"react-native-web": "0.17.5",
"solid-authn-react-native": "1.0.0",
"use-async-effect": "2.2.3",
"expo-linking": "2.4.2",
"expo-random": "12.0.1"
},
"devDependencies": {
"@babel/core": "7.16.0",
"@types/react": "17.0.37",
"@types/react-native": "0.66.8",
"typescript": "4.5.2"
},
When I run npm ls react-native
again, I now have only one version (0.66.3
) installed and my app runs without problems 🎉
I've tried using the library in my Expo app but importing the library causes the following errors when I try to run it on Android:
I have the same issue when using the example repo. I used it almost as is, I just changed in the
package.json
:Any ideas as to what could be the problem?