Skip to content

Commit 69088cf

Browse files
authored
Fix example app Android build (#827)
1 parent f0273d2 commit 69088cf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

example/android/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ buildscript {
4141
}
4242
}
4343

44+
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
45+
4446
allprojects {
47+
configurations.all {
48+
resolutionStrategy {
49+
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
50+
}
51+
}
52+
4553
repositories {
4654
mavenCentral()
4755
mavenLocal()

0 commit comments

Comments
 (0)