Browse Source

Fixes issue with finding React Native version

* Fixes 284

Searching for reactNative version in projects ext root now uses safeExtGet to stop build issues where reactNative is not set.
krislipscombe 4 years ago
parent
commit
4a2317edee
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      android/build.gradle

+ 1
- 1
android/build.gradle View File

47
 
47
 
48
 dependencies {
48
 dependencies {
49
     implementation "com.android.support:support-v4:${safeExtGet('supportLibVersion', '27.+')}"
49
     implementation "com.android.support:support-v4:${safeExtGet('supportLibVersion', '27.+')}"
50
-    api "com.facebook.react:react-native:${rootProject.ext.reactNative}"
50
+    api "com.facebook.react:react-native:${safeExtGet('reactNative', '+')}"
51
 }
51
 }