Skip to content
This repository was archived by the owner on Nov 26, 2019. It is now read-only.

Commit 8c8f315

Browse files
committed
Add pointerEvents='box-none' to make it possible to quickly swipe cards on iOS
1 parent 4343af6 commit 8c8f315

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Stack.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class Stack<T extends Route> extends React.Component<
7070
<View
7171
style={styles.container}
7272
onLayout={this.handleLayout}
73-
pointerEvents={layout.height && layout.width ? 'auto' : 'none'}
73+
pointerEvents={layout.height && layout.width ? 'box-none' : 'none'}
7474
>
7575
{routes.map((route, index, self) => {
7676
const focused = index === self.length - 1;
@@ -82,6 +82,7 @@ export default class Stack<T extends Route> extends React.Component<
8282
importantForAccessibility={
8383
focused ? 'auto' : 'no-hide-descendants'
8484
}
85+
pointerEvents="box-none"
8586
style={StyleSheet.absoluteFill}
8687
>
8788
{renderScene(

0 commit comments

Comments
 (0)