Skip to content

Commit

Permalink
Setup the React Gradle Plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cortinico committed Feb 28, 2022
1 parent 66ca29b commit cb0eceb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: "com.android.application"
apply plugin: "com.facebook.react"

import com.android.build.OutputFile

Expand Down Expand Up @@ -83,6 +84,11 @@ project.ext.react = [

apply from: "../../node_modules/react-native/react.gradle"

react {
reactRoot = rootProject.file("../node_modules/react-native/")
codegenDir = rootProject.file("../node_modules/react-native-codegen/")
}

/**
* Set this to true to create two separate APKs instead of one:
* - An APK that only works on ARM devices
Expand Down

0 comments on commit cb0eceb

Please sign in to comment.