react-native-keychain
react-native-keychain copied to clipboard
iOS & android keychain items are not erased when the app is uninstalled
iOS & android keychain items are not erased when the app is uninstalled
Hi there, You mean iOS only, right? It is a feature and there are many dev wanted it to support Android.
Btw, to fix that issue, you can use other packages like https://github.com/react-native-async-storage/async-storage since its storage data will be removed when App is uninstall so you just need to save a flag value and use that to remove keychain value, EX:
const isAppInitialled = await AsyncStorage.getItem('isAppInitialled'); //Should be empty when App is first Install
if (!isAppInitialled) {
//Delete Keychain data
Keychain.resetGenericPassword(...);
}
await AsyncStorage.setItem('isAppInitialled', 'true');
``
+1
try this https://github.com/emeraldsanto/react-native-encrypted-storage#note-regarding-keychain-persistence