我正在开发React Native应用程序,每当我在Redux Persist中存储大量数据时,我都会收到错误消息:
Error storing the data in android
因此,我根据mainApplication.java
中几个站点中提供的几个答案增加了存储限制,但这不能解决我的问题,
@Override
public void onCreate() {
long size = 900L * 1024L * 1024L;
com.facebook.react.modules.storage.ReactDatabaseSupplier.getInstance(getApplicationContext()).setMaximumSize(size);
super.onCreate();
SoLoader.init(this, /* native exopackage */ false);
}
}