To integrate react-native-camera into your own react native project and make it work for Android, you need to edit the following files in the `android` folder under your project folder:
* In the `android/gradle.properties` file:
```
android.useDeprecatedNdk=true
android.enableAapt2=false
```
* In the `android/build.gradle` file:
```
uildscript {
repositories {
jcenter()
maven {
url 'https://maven.google.com'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
url 'https://maven.google.com'
name 'Google'
}
maven { url "https://jitpack.io" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm