mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 17:34:59 +08:00
Fix gesturesEnabled regression (#886)
Closes #818
Regression caused by 11cab8eab6
This commit is contained in:
committed by
Satyajit Sahoo
parent
8c9a626401
commit
3eb7b12f85
@@ -446,7 +446,15 @@ class CardStack extends Component<DefaultProps, Props, void> {
|
||||
});
|
||||
},
|
||||
});
|
||||
const gesturesEnabled = this.props.mode === 'card' && Platform.OS === 'ios';
|
||||
|
||||
const cardStackConfig = this.props.router.getScreenConfig(
|
||||
props.navigation,
|
||||
'cardStack'
|
||||
) || {};
|
||||
|
||||
const gesturesEnabled = typeof cardStackConfig.gesturesEnabled === 'boolean' ?
|
||||
cardStackConfig.gesturesEnabled :
|
||||
this.props.mode === 'card' && Platform.OS === 'ios';
|
||||
const handlers = gesturesEnabled ? responder.panHandlers : {};
|
||||
return (
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user