package com.allaboutolaf;

import com.facebook.react.ReactActivity;
import com.bugsnag.BugsnagReactNative;
import com.calendarevents.CalendarEventsPackage;
import android.os.Bundle;

public class MainActivity extends ReactActivity {

    /**
     * Returns the name of the main component registered from JavaScript.
     * This is used to schedule rendering of the component.
     */
    @Override
    protected String getMainComponentName() {
        return "AllAboutOlaf";
    }

    // Set up Bugsnag
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        if (!BuildConfig.DEBUG) {
            BugsnagReactNative.start(this);
        }
    }

    // Required for react-native-calendar-events
    @Override
    public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
        CalendarEventsPackage.onRequestPermissionsResult(requestCode, permissions, grantResults);
        super.onRequestPermissionsResult(requestCode, permissions, grantResults);
    }
}

@@ -174,16 +174,81 @@
 .Bundle;
+%0Aimport com.facebook.react.modules.storage.ReactDatabaseSupplier;
 %0A%0Apublic
@@ -762,16 +762,190 @@
       %7D%0A
+        long size = 50L * 1024L * 1024L; // 50 MB%0A        com.facebook.react.modules.storage.ReactDatabaseSupplier.getInstance(getApplicationContext()).setMaximumSize(size);%0A
     %7D%0A%0A 

increase android database size