File tree 8 files changed +18
-14
lines changed
8 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,7 @@ PODS:
257
257
- React
258
258
- RNReanimated (1.4.0):
259
259
- React
260
- - RNScreens (2.0.0-alpha.31 ):
260
+ - RNScreens (2.0.0-alpha.33 ):
261
261
- React
262
262
- UMBarCodeScannerInterface (5.0.0)
263
263
- UMCameraInterface (5.0.0)
@@ -519,7 +519,7 @@ SPEC CHECKSUMS:
519
519
RNCMaskedView: dd13f9f7b146a9ad82f9b7eb6c9b5548fcf6e990
520
520
RNGestureHandler: 02905abe54e1f6e59c081a10b4bd689721e17aa6
521
521
RNReanimated: b2ab0b693dddd2339bd2f300e770f6302d2e960c
522
- RNScreens: 5fcc247984ffae92240e7e8e39e1e19c0a0f6f67
522
+ RNScreens: 1c7fd499b915c77c21e8e6c327890c5af9b4cf7e
523
523
UMBarCodeScannerInterface: 3802c8574ef119c150701d679ab386e2266d6a54
524
524
UMCameraInterface: 985d301f688ed392f815728f0dd906ca34b7ccb1
525
525
UMConstantsInterface: bda5f8bd3403ad99e663eb3c4da685d063c5653c
Original file line number Diff line number Diff line change 26
26
"react-native-reanimated" : " ^1.4.0" ,
27
27
"react-native-restart" : " ^0.0.13" ,
28
28
"react-native-safe-area-context" : " ^0.6.2" ,
29
- "react-native-screens" : " ^2.0.0-alpha.31 " ,
29
+ "react-native-screens" : " ^2.0.0-alpha.33 " ,
30
30
"react-native-tab-view" : " 2.11.0" ,
31
31
"react-native-unimodules" : " ^0.7.0" ,
32
32
"react-native-web" : " ^0.11.7"
Original file line number Diff line number Diff line change 45
45
"react-native-gesture-handler" : " ^1.5.3" ,
46
46
"react-native-reanimated" : " ^1.4.0" ,
47
47
"react-native-safe-area-context" : " ^0.6.2" ,
48
- "react-native-screens" : " ^2.0.0-alpha.31 " ,
48
+ "react-native-screens" : " ^2.0.0-alpha.33 " ,
49
49
"typescript" : " ^3.7.4"
50
50
},
51
51
"peerDependencies" : {
55
55
"react-native-gesture-handler" : " ^1.0.0" ,
56
56
"react-native-reanimated" : " ^1.0.0" ,
57
57
"react-native-safe-area-context" : " ^0.6.0" ,
58
- "react-native-screens" : " ^1.0.0-alpha.0 || ^ 2.0.0-alpha.31 "
58
+ "react-native-screens" : " ^2.0.0-alpha.33 "
59
59
},
60
60
"@react-native-community/bob" : {
61
61
"source" : " src" ,
Original file line number Diff line number Diff line change 31
31
"devDependencies" : {
32
32
"@react-native-community/bob" : " ^0.8.0" ,
33
33
"del-cli" : " ^3.0.0" ,
34
- "react-native-screens" : " ^2.0.0-alpha.31 " ,
34
+ "react-native-screens" : " ^2.0.0-alpha.33 " ,
35
35
"typescript" : " ^3.7.4"
36
36
},
37
37
"peerDependencies" : {
38
38
"@react-navigation/native" : " ^5.0.0-alpha.0" ,
39
39
"react" : " *" ,
40
40
"react-native" : " *" ,
41
- "react-native-screens" : " ^2.0.0-alpha.31 "
41
+ "react-native-screens" : " ^2.0.0-alpha.33 "
42
42
},
43
43
"@react-native-community/bob" : {
44
44
"source" : " src" ,
Original file line number Diff line number Diff line change @@ -59,7 +59,9 @@ export default function HeaderConfig(props: Props) {
59
59
backTitleFontFamily = { headerBackTitleStyle . fontFamily }
60
60
backTitleFontSize = { headerBackTitleStyle . fontSize }
61
61
color = { headerTintColor !== undefined ? headerTintColor : colors . primary }
62
- gestureEnabled = { gestureEnabled === undefined ? true : gestureEnabled }
62
+ // Keep this temporarily for compatibility with old versions of screens
63
+ // @ts -ignore
64
+ gestureEnabled = { gestureEnabled }
63
65
largeTitle = { headerLargeTitle }
64
66
largeTitleFontFamily = { headerLargeTitleStyle . fontFamily }
65
67
largeTitleFontSize = { headerLargeTitleStyle . fontSize }
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export default function NativeStackView({
35
35
{ state . routes . map ( route => {
36
36
const { options, render : renderScene } = descriptors [ route . key ] ;
37
37
const {
38
+ gestureEnabled,
38
39
stackPresentation = 'push' ,
39
40
stackAnimation,
40
41
contentStyle,
@@ -44,6 +45,7 @@ export default function NativeStackView({
44
45
< Screen
45
46
key = { route . key }
46
47
style = { StyleSheet . absoluteFill }
48
+ gestureEnabled = { gestureEnabled }
47
49
stackPresentation = { stackPresentation }
48
50
stackAnimation = { stackAnimation }
49
51
onAppear = { ( ) => {
Original file line number Diff line number Diff line change 45
45
"react-native" : " ~0.61.5" ,
46
46
"react-native-gesture-handler" : " ^1.5.3" ,
47
47
"react-native-safe-area-context" : " ^0.6.2" ,
48
- "react-native-screens" : " ^2.0.0-alpha.31 " ,
48
+ "react-native-screens" : " ^2.0.0-alpha.33 " ,
49
49
"typescript" : " ^3.7.4"
50
50
},
51
51
"peerDependencies" : {
55
55
"react-native" : " *" ,
56
56
"react-native-gesture-handler" : " ^1.0.0" ,
57
57
"react-native-safe-area-context" : " ^0.6.0" ,
58
- "react-native-screens" : " ^1.0.0-alpha.0 || ^ 2.0.0-alpha.31 "
58
+ "react-native-screens" : " ^2.0.0-alpha.33 "
59
59
},
60
60
"@react-native-community/bob" : {
61
61
"source" : " src" ,
Original file line number Diff line number Diff line change @@ -13598,10 +13598,10 @@ react-native-safe-area-view@^0.14.6:
13598
13598
dependencies:
13599
13599
hoist-non-react-statics "^2.3.1"
13600
13600
13601
- react-native-screens@^2.0.0-alpha.31 :
13602
- version "2.0.0-alpha.31 "
13603
- resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-2.0.0-alpha.31 .tgz#399f9fbd882730b4df72e102ce5563109009eb3f "
13604
- integrity sha512-eHYjWBnKSSMtxxzT9o/RYxNL80wWIuXWSGbbb2uxjvpbZdQByq2tl84m+wXFyTz1rbJqqIHrcqWD/hEW58CQsg ==
13601
+ react-native-screens@^2.0.0-alpha.33 :
13602
+ version "2.0.0-alpha.33 "
13603
+ resolved "https://registry.yarnpkg.com/react-native-screens/-/react-native-screens-2.0.0-alpha.33 .tgz#66ecda655958f4939ddf31eb84c4cf0af0ae8e3e "
13604
+ integrity sha512-JVnrAnhWDm7+CviqOeFUtRt8eExYdvoX/y4NEhn/yLhwlSQuJiNStgg8R0j4t2XKifJ5CBNxEGpkEw12fIYYxg ==
13605
13605
dependencies:
13606
13606
debounce "^1.2.0"
13607
13607
You can’t perform that action at this time.
0 commit comments