Skip to content

Commit

Permalink
fix: build on 0.72 new arch (#2997)
Browse files Browse the repository at this point in the history
  • Loading branch information
Titozzz committed Jun 12, 2023
1 parent a680662 commit 7ceeb2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ android {
}

def reactNativePath = findNodeModulePath(projectDir, "react-native")
def codegenPath = findNodeModulePath(projectDir, "react-native-codegen")
def codegenPath = findNodeModulePath(projectDir, "@react-native/codegen")
if (codegenPath == null) {
// Compat for 0.71 and lower (to be removed)
codegenPath = findNodeModulePath(projectDir, "react-native-codegen")
}

repositories {
maven {
Expand Down

0 comments on commit 7ceeb2f

Please sign in to comment.