Closed
Description
Current behavior
Using the latest stable release (1.9.0), AsyncStorage items that are set persist after an iOS app is uninstalled and then re-installed.
Expected behavior
AsyncStorage should be completely clear after uninstalling/reinstalling an app. This is how the framework bundled AsyncStorage behaves, so one would expect the community version to function the same way. If this persistence is intentional, it should be documented (as far as I can tell there is nothing in the docs that would explain this behavior, but I might have missed something). Apologies if I am mistaken or if this issue has been reported already.
Repro steps
AsyncStorage.setItem('someKey', 'someData');
- Uninstall iOS app
- Re-install iOS app
const data = AsyncStorage.getItem('someKey'); // returns someData
Environment
- Async Storage version: 1.9.0
- React-Native version: 0.62.2
- Platform tested: iOS 13.3