Skip to content

Commit cb0eceb

Browse files
committed
Setup the React Gradle Plugin
1 parent 66ca29b commit cb0eceb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: android/app/build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.application"
2+
apply plugin: "com.facebook.react"
23

34
import com.android.build.OutputFile
45

@@ -83,6 +84,11 @@ project.ext.react = [
8384

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

87+
react {
88+
reactRoot = rootProject.file("../node_modules/react-native/")
89+
codegenDir = rootProject.file("../node_modules/react-native-codegen/")
90+
}
91+
8692
/**
8793
* Set this to true to create two separate APKs instead of one:
8894
* - An APK that only works on ARM devices

0 commit comments

Comments
 (0)