Setting SHARED_PREFERENCES_NAME in Secure Store

Looking at the implementation of SecureStoreModule.java, it appears that the preferences file name cannot be set:
https://github.com/expo/expo/blob/45307852a818da7fac7171d1539b3449021d27dc/android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/SecureStoreModule.java#L62

Any chance this might change, and that we could set pref file name as keychainService option on iOS implementation?

Use case: need to access legacy shared preferences from previous native app version.

Thanks!

I have this exact same issue. I hope that this can become a parameter instead of a hard-coded string’

1 Like

I moved on using https://github.com/mCodex/react-native-sensitive-info, which supports such options

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.