react-nativeios-simulatorasyncstorage

Where does React-Native AsyncStorage save data on disk using iPhone Simulator?


Using IOS Simulator, where does React-Native AsyncStorage save the data on disk ?

I am using IOS Simulator version 10.0 and running IOS 10.2 and react-native 0.40.0


Solution

  • React Native async storage data is inside Documents folder of you application sandbox. For react-native 0.40.0 it is Documents/RCTAsyncLocalStorage_V1/manifest.json.

    Path to sandbox folder for iOS Simulator (Xcode 8.2) is: ~/Library/Developer/CoreSimulator/Devices/{DEVICE_ID}/data/Containers/Data/Application/{APP_ID}

    To find DEVICE_ID you can use xcrun simctl list from terminal. Since your application gets new APP_ID on each run, you can't easily find it. I simple list all files inside Application and get most recently updated. See Xcode 6 keeps renaming my app's directory in iOS8 simulator after each run. and related for other solutions.