fix: fix gestures not working in stack

This commit is contained in:
satyajit.happy
2019-08-28 21:41:15 +02:00
parent d72a96d1ef
commit 8c1acc33c6

View File

@@ -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"