Skip to content
This repository was archived by the owner on Feb 25, 2020. It is now read-only.

Commit 572ab5c

Browse files
committed
fix: don't enable overlay on iOS by default
1 parent 6651972 commit 572ab5c

File tree

3 files changed

+2
-73
lines changed

3 files changed

+2
-73
lines changed

src/navigators/__tests__/__snapshots__/NestedNavigator.test.tsx.snap

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,6 @@ Array [
7171
}
7272
}
7373
>
74-
<View
75-
pointerEvents="none"
76-
style={
77-
Array [
78-
Object {
79-
"backgroundColor": "#000",
80-
"bottom": 0,
81-
"left": 0,
82-
"position": "absolute",
83-
"right": 0,
84-
"top": 0,
85-
},
86-
Object {
87-
"opacity": undefined,
88-
},
89-
]
90-
}
91-
/>
9274
<View
9375
pointerEvents="box-none"
9476
style={
@@ -245,24 +227,6 @@ Array [
245227
}
246228
}
247229
>
248-
<View
249-
pointerEvents="none"
250-
style={
251-
Array [
252-
Object {
253-
"backgroundColor": "#000",
254-
"bottom": 0,
255-
"left": 0,
256-
"position": "absolute",
257-
"right": 0,
258-
"top": 0,
259-
},
260-
Object {
261-
"opacity": undefined,
262-
},
263-
]
264-
}
265-
/>
266230
<View
267231
pointerEvents="box-none"
268232
style={

src/navigators/__tests__/__snapshots__/StackNavigator.test.tsx.snap

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -71,24 +71,6 @@ Array [
7171
}
7272
}
7373
>
74-
<View
75-
pointerEvents="none"
76-
style={
77-
Array [
78-
Object {
79-
"backgroundColor": "#000",
80-
"bottom": 0,
81-
"left": 0,
82-
"position": "absolute",
83-
"right": 0,
84-
"top": 0,
85-
},
86-
Object {
87-
"opacity": undefined,
88-
},
89-
]
90-
}
91-
/>
9274
<View
9375
pointerEvents="box-none"
9476
style={
@@ -407,24 +389,6 @@ Array [
407389
}
408390
}
409391
>
410-
<View
411-
pointerEvents="none"
412-
style={
413-
Array [
414-
Object {
415-
"backgroundColor": "#000",
416-
"bottom": 0,
417-
"left": 0,
418-
"position": "absolute",
419-
"right": 0,
420-
"top": 0,
421-
},
422-
Object {
423-
"opacity": undefined,
424-
},
425-
]
426-
}
427-
/>
428392
<View
429393
pointerEvents="box-none"
430394
style={

src/views/Stack/Card.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
ViewProps,
77
StyleProp,
88
ViewStyle,
9+
Platform,
910
} from 'react-native';
1011
import Animated from 'react-native-reanimated';
1112
import {
@@ -94,7 +95,7 @@ const {
9495

9596
export default class Card extends React.Component<Props> {
9697
static defaultProps = {
97-
overlayEnabled: true,
98+
overlayEnabled: Platform.OS !== 'ios',
9899
shadowEnabled: true,
99100
gesturesEnabled: true,
100101
};

0 commit comments

Comments
 (0)