Search code examples
react-nativereact-native-keychain

react-native-keychain crashing while using getGenericPassword function


I have a react-native app, and I'm trying to recover the user credentials after the timeout (token expiration). But when I use the function "getGenericPassword()" my app doesn't get the credentials, the app continues running but I can't get the desired values. I get no error or warning from the log. There are no information.

Some additionals about the package.json:

"react-native": "0.61.5"
"react-native-keychain": "5.0.1"

Could someone help me with that? Thank you in advance!


Solution

  • If someone is stucked here, I solve the problem updating the version from react-native-keychain to 7.0.0 and increasing the compileSdkVersion to 28