react-native-encrypted-storage icon indicating copy to clipboard operation
react-native-encrypted-storage copied to clipboard

Can't access the module from native code

Open Hesowcharov opened this issue 3 years ago • 1 comments

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.

Hesowcharov avatar Mar 22 '21 14:03 Hesowcharov

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.

emeraldsanto avatar May 05 '21 18:05 emeraldsanto