react-native-secure-key-store icon indicating copy to clipboard operation
react-native-secure-key-store copied to clipboard

Cannot read property 'set' of null

Open ChristopherDcosta opened this issue 2 years ago • 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 avatar Dec 06 '22 06:12 ChristopherDcosta

@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.

aaroncornelissen avatar Apr 03 '23 13:04 aaroncornelissen

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 👍

Noitham avatar Aug 09 '23 14:08 Noitham