Skip to content

Commit

Permalink
fix: rm mode check in registrationCompat
Browse files Browse the repository at this point in the history
  • Loading branch information
Sunbreak committed Jul 22, 2023
1 parent 44df3f9 commit f178fde
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ import groovy.json.JsonSlurper

// https://github.com/callstack/react-native-builder-bob/discussions/359
def registrationCompat = {
def reactNativeManifest = file("$projectDir/../node_modules/react-native/package.json").exists()
? file("$projectDir/../node_modules/react-native/package.json") // developer mode, to run example app
: file("$projectDir/../../react-native/package.json")
def reactNativeManifest = file("$projectDir/../../react-native/package.json")
def reactNativeVersion = new JsonSlurper().parseText(reactNativeManifest.text).version as String
// Fabric was introduced at react-native@0.68, full CMake support were introduced at react-native@0.70
// Use Android.mk for compatibility with react-native@0.68/0.69
Expand Down

0 comments on commit f178fde

Please sign in to comment.