console.error:在Android设备的React Native中存储数据时出错

时间:2020-06-15 07:48:45

标签: react-native react-redux redux-persist

enter image description here我正在开发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);
  }
}

0 个答案:

没有答案