An asynchronous, persistent, key-value storage system for React Native.
MIT License
Bot releases are hidden (Show)
Published by krizzu about 4 years ago
https://github.com/react-native-community/react-native-async-storage/compare/v1.12.0...v1.12.1
Published by krizzu about 4 years ago
Since the last release, many documentation PRs have landed. Thanks everyone for contribution 🎉
https://github.com/react-native-community/react-native-async-storage/compare/v1.11.0...v1.12.0
Published by krizzu over 4 years ago
https://github.com/react-native-community/react-native-async-storage/compare/v1.10.3...v1.11.0
Published by krizzu over 4 years ago
https://github.com/react-native-community/react-native-async-storage/compare/v1.10.2...v1.10.3
Published by krizzu over 4 years ago
https://github.com/react-native-community/react-native-async-storage/compare/v1.10.1...v1.10.2
Published by krizzu over 4 years ago
https://github.com/react-native-community/react-native-async-storage/compare/v1.10.0...v1.10.1
Published by krizzu over 4 years ago
https://github.com/react-native-community/react-native-async-storage/compare/v1.9.0...v1.10.0
Published by krizzu over 4 years ago
AsyncStorageFactory
typesPublished by krizzu over 4 years ago
multiGet
/multiSet
methods.clearStorage
Published by krizzu over 4 years ago
Published by krizzu over 4 years ago
You can now use Async Storage in your web projects. a99d805431bc59c8a7f5ebbf85f71323c83df122
https://github.com/react-native-community/react-native-async-storage/compare/v1.8.1...v1.9.0
Published by krizzu over 4 years ago
https://github.com/react-native-community/react-native-async-storage/compare/v1.8.0...v1.8.1
Published by krizzu over 4 years ago
Note: If you're planning on upgrade, please use v1.8.1 and up.
https://github.com/react-native-community/react-native-async-storage/compare/v1.7.1...v1.8.0
So far, Async Storage has used NSDocumentDirectory
(and NSCachesDirectory
for tvOS
) location to store the manifest file, where all data is saved.
NSDocumentDirectory
- This folder is visible on iOS in scenarios where you can view the Files structure. For instance, in Word/PPT/Excel, a user can tap through to this and see a folder titled "RCTAsyncLocalStorage_V1".
NSCachesDirectory
- Apple documents this as a location that can get purged in low memory scenarios "the system may delete the Caches directory on rare occasions when the system is very low on disk space."
Those two location are not best place to keep user data. The new location, the Application Support directory (NSApplicationSupportDirectory
), is described as "[containing] all app-specific data and support files" and it can safely contain user data. There is not risk of this purging in low memory situations and this isn’t visible to iOS users.
This feature also includes a migration process. On app startup, a check is run to see if Application Support
contains the manifest file:
- If it does, do nothing
- if it does not, copy over the manifest from previous location (either NSDocumentDirectory
or NSCachesDirectory
)
This is considered as breaking change, as some dependencies might still use older version of AS or the one available from the React Native core. In that case, both old and new locations are used, so unexpected behavior might occur. Ideally, you’ll want to make sure that only one version of AS is used within your Application.
Thanks @HeyImChris for implementing this feature!
Published by krizzu over 4 years ago
Published by krizzu over 4 years ago
__DEV__
global variable causing issues on web platformPublished by krizzu over 4 years ago
Published by krizzu almost 5 years ago
https://github.com/react-native-community/react-native-async-storage/compare/v1.7.0...v1.7.1
Published by krizzu almost 5 years ago
Release Candidate for Legacy storage.
Published by krizzu almost 5 years ago
Release Candidate for Web storage.
Published by krizzu almost 5 years ago
Release candidate for Core.