package com.camersja;

import android.app.Application;

import com.facebook.react.ReactApplication;

import expo.adapters.react.ModuleRegistryAdapter;
import expo.adapters.react.ReactAdapterPackage;
import expo.adapters.react.ReactModuleRegistryBuilder;
import expo.core.ModuleRegistryBuilder;
import expo.core.interfaces.Package;
import expo.modules.filesystem.FileSystemPackage;
import expo.modules.facedetector.FaceDetectorPackage;
import expo.modules.camera.CameraPackage;
import expo.modules.permissions.PermissionsPackage;

import com.facebook.react.ReactNativeHost;
import com.facebook.react.ReactPackage;
import com.facebook.react.shell.MainReactPackage;
import com.facebook.soloader.SoLoader;

import java.util.Arrays;
import java.util.List;

public class MainApplication extends Application implements ReactApplication {
  private final ModuleRegistryBuilder mModuleRegistryBuilder = new ReactModuleRegistryBuilder(Arrays.<Package>asList(
    new FileSystemPackage(),
    new FaceDetectorPackage(),
    new PermissionsPackage(),
    new CameraPackage(),
    new ReactAdapterPackage()
  ));

  private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
    @Override
    public boolean getUseDeveloperSupport() {
      return BuildConfig.DEBUG;
    }

    @Override
    protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
          new MainReactPackage(),
          new ModuleRegistryAdapter(mModuleRegistryBuilder)
      );
    }

    @Override
    protected String getJSMainModuleName() {
      return "index";
    }
  };

  @Override
  public ReactNativeHost getReactNativeHost() {
    return mReactNativeHost;
  }

  @Override
  public void onCreate() {
    super.onCreate();
    SoLoader.init(this, /* native exopackage */ false);
  }
}

@@ -230,36 +230,37 @@
 ctModuleRegistry
-Buil
+Provi
 der;%0Aimport expo
@@ -279,20 +279,21 @@
 Registry
-Buil
+Provi
 der;%0Aimp
@@ -852,28 +852,29 @@
 duleRegistry
-Buil
+Provi
 der mModuleR
@@ -880,20 +880,21 @@
 Registry
-Buil
+Provi
 der = ne
@@ -914,20 +914,21 @@
 Registry
-Buil
+Provi
 der(Arra
@@ -1467,20 +1467,21 @@
 Registry
-Buil
+Provi
 der)%0A   

Change ReactModuleRegistryBuilder to ReactModuleRegistryProvider, move registry for context logic there