1.0.0 • Published 7 years ago
react-native-safe-async-storage-af v1.0.0
react-native-safe-async-storage
Wrapper around AsyncStorage that writes large values to the filesystem using react-native-fs. This is to avoid the dread "android java.lang.IllegalStateException: Couldn't read row 0, col 0 from CursorWindow" when large values are stored using AsyncStorage.
Usage
npm install --save react-native-fs # peer dep
npm install --save react-native-safe-async-storage
rnpm link
import AsyncStorage from 'react-native-safe-async-storage'
// use as you would AsyncStorage
// large values are stored to fs.DocumentDirectoryPath + '/fsas'
1.0.0
7 years ago