We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c2ab97 commit ae48b95Copy full SHA for ae48b95
android/app/build.gradle
@@ -12,6 +12,10 @@ plugins {
12
13
if (isNewArchitectureEnabled(project)) {
14
apply(plugin: "com.facebook.react")
15
+ react {
16
+ codegenDir = file(findNodeModulesPath("react-native-codegen", file(reactNativeDir)))
17
+ reactNativeDir = file(reactNativeDir)
18
+ }
19
}
20
21
// `react-native run-android` is hard-coded to look for the output APK at a very
@@ -63,8 +67,6 @@ project.ext.react = [
63
67
enableFlipper : getFlipperVersion(rootDir),
64
68
enableHermes : true,
65
69
enableNewArchitecture: isNewArchitectureEnabled(project),
66
- codegenDir : findNodeModulesPath("react-native-codegen", file(reactNativeDir)),
- reactNativeDir : reactNativeDir,
70
]
71
72
project.ext.signingConfigs = getSigningConfigs()
0 commit comments