Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
fix: properly set animated node on gestureEnabled change
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Aug 29, 2019
1 parent 3ad2e6e commit 6a8242c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/stack/src/views/Stack/Card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ export default class Card extends React.Component<Props> {
<View pointerEvents="box-none" {...rest}>
<Animated.Code exec={this.exec} />
<Animated.Code
key={gestureEnabled ? 'gesture-code' : 'no-gesture-code'}
exec={gestureEnabled ? this.execWithGesture : this.execNoGesture}
/>
{overlayEnabled && overlayStyle ? (
Expand Down

0 comments on commit 6a8242c

Please sign in to comment.