react-native-encrypted-storage
react-native-encrypted-storage copied to clipboard
Can't access the module from native code
Hi! Thank you for the great project! ⭐
It would be cool if this react-native module could be accessible from the native side. For example, after setting the sensitive token from JS, it would be possible to get this value in the native environment. For example, I noticed the missing @ReactModule annotation in your java implementation of RNEncryptedStorageModule as well as missing a public method to get an instance of encrypted shared preferences.
I suppose I could put all the SharedPreferences handling code in a separate file as a normal Java class and call it from the RN module. Not sure how this would work on iOS but I'll look into it for version 5.