11

My question originates from the docs: https://facebook.github.io/react-native/docs/asyncstorage.html#clear

AsyncStorage.clear -> Erases all AsyncStorage for all clients, libraries, etc....

does that mean that all apps share the same AsyncStorage?

Ali Ismayilov
  • 5,727
  • 2
  • 22
  • 24
  • AsyncStorage is a simple, unencrypted, asynchronous, persistent, key-value storage system that is **global to the app**. It should be used instead of LocalStorage. – WilomGfx Feb 14 '18 at 15:34

1 Answers1

16

AsyncStorage is not shared between multiple apps. Every app runs it it's own sandbox environment and has no access to other apps.

To call AsyncStorage.clear only means you will delete all data which your app has stored in AsyncStorage.

That includes

For more information about app sandboxing you can read this answer: What is Sandbox in ios , Can i Trans data between in one App to Another App in iPhone,if possible how

Alexander Kuttig
  • 426
  • 3
  • 10