mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-05-12 18:08:21 +08:00
fix: fix gestures not working in stack
This commit is contained in:
@@ -591,11 +591,9 @@ export default class Card extends React.Component<Props> {
|
||||
<StackGestureContext.Provider value={this.gestureRef}>
|
||||
<View pointerEvents="box-none" {...rest}>
|
||||
<Animated.Code exec={this.exec} />
|
||||
{this.props.gestureEnabled ? (
|
||||
<Animated.Code exec={this.execNoGesture} />
|
||||
) : (
|
||||
<Animated.Code exec={this.execWithGesture} />
|
||||
)}
|
||||
<Animated.Code
|
||||
exec={gestureEnabled ? this.execWithGesture : this.execNoGesture}
|
||||
/>
|
||||
{overlayEnabled && overlayStyle ? (
|
||||
<Animated.View
|
||||
pointerEvents="none"
|
||||
|
||||
Reference in New Issue
Block a user