Skip to content

Commit

Permalink
Fix android build
Browse files Browse the repository at this point in the history
  • Loading branch information
rlepinski committed Nov 18, 2022
1 parent 190a5a0 commit a5efdee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,18 @@ buildscript {
}
}

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())

allprojects {

configurations.all {
resolutionStrategy {
// Remove this override in 0.65+, as a proper fix is included in react-native itself.
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}


repositories {
mavenLocal()
maven {
Expand Down

0 comments on commit a5efdee

Please sign in to comment.