-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Unhandled promise rejection: TypeError: null is not an object (evaluating '_reactNativeRsaNative.RSA.generateKeys')] #145
Comments
I had the same error. |
Any way of doing this without ejecting? |
Could you share more about how to do this? Thank you! |
@StrawberryChocolateFudge thank you so much for the tip! It saved my day. @willpiam you need to run |
Is there a way of making it work without ejecting it? In modern Expo, let's say SDK 48/49? I tried to debug what is actually imported:
If I log the value of RSA, this is the output:
If possible I would like to fix it and submit a PR, if someone can give some guidance |
Any updates regarding the null issue without ejecting in expo mentioned by @alessandrocapra ? |
I ended up using node-forge instead, it works very well |
Alright - will look into it. Thanks. |
It does not work with expo-
Errors
[Unhandled promise rejection: TypeError: null is not an object (evaluating '_reactNativeRsaNative.RSA.generateKeys')]
at src\utils\pki.ts:11:4 in createKeyPairRSA
at node_modules@babel\runtime\helpers\regeneratorRuntime.js:86:13 in tryCatch
at node_modules@babel\runtime\helpers\regeneratorRuntime.js:66:31 in
at node_modules@babel\runtime\helpers\regeneratorRuntime.js:86:13 in tryCatch
at node_modules@babel\runtime\helpers\regeneratorRuntime.js:124:27 in invoke
The text was updated successfully, but these errors were encountered: