Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow to get data larger than 2MB in AsyncStorage
Default Android cursor size is 2MB so we can not store entries larger than 2MB by default. But backup feature store quickly more than 2MB. There are two main possibilities : - AsyncStorage recommand to separate data in multiple entries and use multiGet and multiSet - increase sCursorWindowSize in MainApplication.java I try here the second way now which looks like the "easy quick fix". 50MB seems a reasonable value here. 1000 pictures in mediasToBackup ~ 330KiB See react-native-async-storage/async-storage#617 (comment) and https://react-native-async-storage.github.io/async-storage/docs/limits
- Loading branch information