react-native-pincode: null is not an object (evaluating 'RNKeychainManager.SECURITY_LEVEL_ANY')
null is not an object (evaluating 'RNKeychainManager.SECURITY_LEVEL_ANY')
dependencies:
@haskkor/react-native-pincode#1.13.0
react-native-keychain#3.1.1

About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 26 (10 by maintainers)
On a fresh install I have this same issue. For my use case I do not want to use any of the other features. I just need a clean way of accepting a pin from a user.
The flow I am trying to accomplish is like this,
The first time a user uses the application -
The next time the user uses the mobile app I request their pin to decrypt their saved data -
On a fresh install, I see the error mentioned above,
Example of usage,
Have you guys tried running the following commands?
I at last experienced this issue when upgrading keychain to 5.0.1. However following this: https://github.com/oblador/react-native-keychain/issues/221 And then the instructions on keychain:
it fixed itself. I don’t know what else can cause this.
@Haskkor this is because this package is requiring
react-native-keychain@^3.0.0-rc.3, I created PR #72 locking the version to the last stable version.