fix: Fix autolinking for android (#231)

* Create `react-native.config.js`

* Update react-native.config.js

* Create dummy CameraPackage as proxy for CLI
This commit is contained in:
Marc Rousavy 2021-06-28 17:27:24 +02:00 committed by GitHub
parent 08d04d1be1
commit 9dad027b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mrousavy.camera">
</manifest>

View File

@ -0,0 +1,8 @@
package com.mrousavy.camera;
import com.facebook.react.ReactPackage;
import com.mrousavy.camera.CameraPackage;
public class CameraPackage implements ReactPackage {
// dummy package
}

View File

@ -14,6 +14,7 @@
"lib/typescript", "lib/typescript",
"android/build.gradle", "android/build.gradle",
"android/*.aar", "android/*.aar",
"android/src",
"ios/**/*.h", "ios/**/*.h",
"ios/**/*.m", "ios/**/*.m",
"ios/**/*.mm", "ios/**/*.mm",
@ -23,6 +24,7 @@
"cpp/**/*.h", "cpp/**/*.h",
"cpp/**/*.cpp", "cpp/**/*.cpp",
"VisionCamera.podspec", "VisionCamera.podspec",
"react-native.config.js",
"README.md" "README.md"
], ],
"scripts": { "scripts": {