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

Commit

Permalink
Add pointerEvents='box-none' to make it possible to quickly swipe car…
Browse files Browse the repository at this point in the history
…ds on iOS
  • Loading branch information
satya164 committed May 19, 2019
1 parent 4343af6 commit 8c8f315
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Stack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class Stack<T extends Route> extends React.Component<
<View
style={styles.container}
onLayout={this.handleLayout}
pointerEvents={layout.height && layout.width ? 'auto' : 'none'}
pointerEvents={layout.height && layout.width ? 'box-none' : 'none'}
>
{routes.map((route, index, self) => {
const focused = index === self.length - 1;
Expand All @@ -82,6 +82,7 @@ export default class Stack<T extends Route> extends React.Component<
importantForAccessibility={
focused ? 'auto' : 'no-hide-descendants'
}
pointerEvents="box-none"
style={StyleSheet.absoluteFill}
>
{renderScene(
Expand Down

0 comments on commit 8c8f315

Please sign in to comment.