React native Async Storage Limit on Android

旧时模样 提交于 2019-12-07 19:39:30

问题


I'm developing a React Native app which will easily exceed the 6mb limit. According to this, I should be able to use the method setMaximumSize, however I'm not sure of where or how I should invoke it in my project.

A practical example would be welcome.

EDIT: For anyone who needs this in the future here's how you do it:

    // MainApplication.getPackages()
long size = 50L * 1024L * 1024L; // 50 MB
com.facebook.react.modules.storage.ReactDatabaseSupplier.getInstance(getApplicationContext()).setMaximumSize(size);

来源:https://stackoverflow.com/questions/38991073/react-native-async-storage-limit-on-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!