pradeep1991singh/react-native-secure-key-store

Cannot read property 'set' of null

ChristopherDcosta opened this issue · 2 comments

When I'm trying to set the key as documented then the error cannot read property 'set' of null occurs. Please help

@ChristopherDcosta I have this problem as well.

RNSecureKeyStore is null when i'm running my app on a iOS device.
I am using version 2.0.9 because of issue #118.

I figured out that the react-native-secure-key-store pod is missing after pod update. It seems that version 2.0.9 for IOS doesn't installs the pod anymore. In version 2.0.10 the pod installs and then I don't have the problem.

Now I'm forced to release my app version 2.0.9 for Android and 2.0.10 for iOS.

Another way to overcome this issue other than updating to 2.0.10 (which then breaks Android), is to add the Pod manually on the Podfile:

...
pod 'RNSecureKeyStore', path: '../node_modules/react-native-secure-key-store/ios'
... 

This should do the workaround 👍