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

fix: gesture vertical inverted #281

Merged
merged 2 commits into from
Nov 5, 2019
Merged

Conversation

osdnk
Copy link
Member

@osdnk osdnk commented Nov 4, 2019

No description provided.

@@ -412,18 +412,25 @@ export default class Card extends React.Component<Props> {
cond(
eq(this.props.current, isVisible),
call(
[this.didMovementHappen, this.isVisible],
([didMovementHappen]: ReadonlyArray<Binary>) => {
[this.didMovementHappen, isVisible],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to handle a case when we release not components either on the beginning or end of animation

@osdnk osdnk requested a review from satya164 November 4, 2019 21:17
src/views/Stack/Card.tsx Outdated Show resolved Hide resolved
@@ -636,7 +646,10 @@ export default class Card extends React.Component<Props> {
this.gestureUntraversed,
I18nManager.isRTL ? MINUS_ONE_NODE : TRUE_NODE
),
this.gestureUntraversed
multiply(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of multiplying this in each place, maybe it'll be better to create a single node which multiplies it and reuse that? Like we do for direction

@osdnk osdnk merged commit 34f3c51 into master Nov 5, 2019
@osdnk osdnk deleted the @osdnk/gesture-vertical-inverted branch November 5, 2019 12:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants