mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-28 20:35:19 +08:00
fix: properly set animated node on gestureEnabled change
This commit is contained in:
@@ -611,11 +611,10 @@ 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
|
||||
key={gestureEnabled ? 'gesture-code' : 'no-gesture-code'}
|
||||
exec={gestureEnabled ? this.execWithGesture : this.execNoGesture}
|
||||
/>
|
||||
{overlayEnabled && overlayStyle ? (
|
||||
<Animated.View
|
||||
pointerEvents="none"
|
||||
|
||||
Reference in New Issue
Block a user