Android: Fix a few things that went broke

This commit is contained in:
Marc Rousavy 2021-02-19 21:05:01 +01:00
parent 3089a99ae8
commit 7bcbc2506f
2 changed files with 3 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mrousavy.camera"> package="com.mrousavy.camera.example">
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.INTERNET" />

View File

@ -1,6 +1,5 @@
package com.mrousavy.camera.example; package com.mrousavy.camera.example;
import android.app.Application;
import android.content.Context; import android.content.Context;
import com.facebook.react.PackageList; import com.facebook.react.PackageList;
import com.reactnativenavigation.NavigationApplication; import com.reactnativenavigation.NavigationApplication;
@ -8,10 +7,9 @@ import com.facebook.react.ReactNativeHost;
import com.reactnativenavigation.react.NavigationReactNativeHost; import com.reactnativenavigation.react.NavigationReactNativeHost;
import com.facebook.react.ReactPackage; import com.facebook.react.ReactPackage;
import com.facebook.react.ReactInstanceManager; import com.facebook.react.ReactInstanceManager;
import com.facebook.soloader.SoLoader;
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.InvocationTargetException;
import java.util.List; import java.util.List;
import com.mrousavy.camera; import com.mrousavy.camera.CameraPackage;
import com.facebook.react.bridge.JSIModulePackage; import com.facebook.react.bridge.JSIModulePackage;
import com.swmansion.reanimated.ReanimatedJSIModulePackage; import com.swmansion.reanimated.ReanimatedJSIModulePackage;
@ -31,7 +29,7 @@ public class MainApplication extends NavigationApplication {
List<ReactPackage> packages = new PackageList(this).getPackages(); List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for VisionCameraExample: // Packages that cannot be autolinked yet can be added manually here, for VisionCameraExample:
// packages.add(new MyReactNativePackage()); // packages.add(new MyReactNativePackage());
packages.add(new VisionCameraPackage()); packages.add(new CameraPackage());
return packages; return packages;
} }