Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: no events when swipe cancelled #951

Merged
merged 1 commit into from
May 26, 2021

Conversation

WoLewicki
Copy link
Member

Description

When the swipe to go back is cancelled, all lifecycle events are called on both transitioning screens and we don't want them to be sent to JS. In the future, we can send e.g. swipeCancelled event in such case if it is requested by users.

Changes

Added logic catching the case of cancelled swipe and not calling notification methods then.

Test code and steps to reproduce

Test593.tsx in TestsExample project.

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@WoLewicki WoLewicki merged commit 2839112 into master May 26, 2021
@WoLewicki WoLewicki deleted the @wolewicki/correct-events-on-swipe branch May 26, 2021 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants