Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit a3686a3

Browse files
authored
[Fixes #258] Pin dependencies and patch build.gradle for Windows/Android (#265)
1 parent 4137af9 commit a3686a3

3 files changed

Lines changed: 46 additions & 51 deletions

File tree

android/build.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ buildscript {
2323
}
2424
}
2525

26+
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())
27+
2628
allprojects {
29+
configurations.all {
30+
resolutionStrategy {
31+
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
32+
}
33+
}
34+
2735
repositories {
2836
mavenLocal()
2937
maven {

package-lock.json

Lines changed: 36 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
"react-native-localization": "^2.3.1",
3636
"react-native-progress": "^4.0.3",
3737
"react-native-push-notification": "^3.5.2",
38-
"react-native-reanimated": "^2.2.0",
38+
"react-native-reanimated": "2.2.0",
3939
"react-native-safe-area-context": "^3.2.0",
40-
"react-native-screens": "^3.4.0",
40+
"react-native-screens": "3.4.0",
4141
"react-native-side-menu-updated": "^1.3.2",
4242
"react-native-splash-screen": "^3.2.0",
4343
"react-native-vector-icons": "^6.6.0",

0 commit comments

Comments
 (0)