react-native-sensitive-info manages all data stored in Android Shared Preferences and iOS Keychain.
NOTE: Android Shared Preferences are not secure, but there is a branch of react-native-sensitive-info that uses the Android keystore instead of shared preferences. You can use that branch with redux-persist-sensitive-storage if you prefer.
You can install this package using either
npm. You will also need to install and link react-native-sensitive-info.
yarn add redux-persist-sensitive-storage react-native-sensitive-info react-native link react-native-sensitive-info
npm install --save redux-persist-sensitive-storage react-native-sensitive-info react-native link react-native-sensitive-info
To use redux-persist-sensitive-storage, configure redux-persist according to its documentation.
persistStore call as follows:
options is optional and are used to configure the keychain service (iOS) and shared preferences name (Android) that react-native-sensitive-info uses. See the documentation for more information.
Here's a full example:
;;;const store =;