Skip to content

Commit e848f31

Browse files
authored
fix: do not use reactNativeVersion in build.gradle (#720)
1 parent 442e8dd commit e848f31

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

android/build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@ android {
2020
}
2121
}
2222

23+
repositories {
24+
mavenLocal()
25+
maven {
26+
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
27+
url("$rootDir/../node_modules/react-native/android")
28+
}
29+
google()
30+
}
31+
2332
dependencies {
24-
implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}" // From node_modules
33+
implementation "com.facebook.react:react-native:+" // From node_modules
2534
}

0 commit comments

Comments
 (0)