-
-
Notifications
You must be signed in to change notification settings - Fork 523
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
TypeError: Cannot read property 'setGenericPasswordForOptions' of null #591
Comments
Did you find a solution to this issue, I have the same problem. |
I have a similar problem while trying to use setGenericPassword. Would highly appreciate any help with this if anyone was able to resolve it. Expected behavior is to be able to store the tokens and retrieve using I however encounter the following error while trying to set:
and
while trying to get.
|
Same |
Same error |
same error. tragic 🥶 |
Hey, I managed to solve my problem. It was an oversight, I realized I can't user react-native-keychain in expo. So incase you are using expo, you could opt for SecureStore |
I just read @dannywamuya's comment after I learned expo managed workflow can't use react-native-keychain. and I solved it using SecureStore you mentioned. thank you so much :) |
I had the same issue... I just deleted node_modules and installed it again :)
|
same issue, non of the solutions above worked |
yea same here, I was using expo and made the switch to secureStore. Would recommend! |
Had same issue... |
same issue, non of the solutions above worked. Works fine on iOS but not on Android. I am not using expo. Uninstalling the app and re-building did not fix the issue "react-native": "^0.73.9", |
I had the same issue.I uninstalled the app and then build it again.The error got resolved after the new build. |
Some more context for my issue: I am not using expo. This also does not happen on iOS. When I run my app initially, react native keychain works fine. However, if I close the app and re-open it again, I get this error when calling setGenericPassword and getGenericPassword. Tried replicating in a bare react native app and was unable to do so. |
Version:
"react-native-keychain": "^8.1.1"
"react-native": "0.71.3"
Expected behavior:
Set token, get token, display token
Actual behavior:
Relevant code:
The text was updated successfully, but these errors were encountered: