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 elements dissapearing due to high values set to threshold props in ReanimatedSwipeable #3153

Conversation

latekvo
Copy link
Contributor

@latekvo latekvo commented Oct 14, 2024

Description

Remove mechanism hiding elements which are already out of screen to fix a bug where this mechanism sometimes fired when the element was still on the screen.

Still researching why elements had to be hidden in the first place.

First commit adding the feature which is removed in this PR: (link)

Test plan

  • open Swipeable Reanimation example
  • open the Reanimated swipeable
  • close it but just enough to stop seeing the red element
  • due to threshold set to 80, which is 2 times the width of the element, the swipeable fails to close
  • swipeable retracts to open
  • before this fix, the red element wouldn't be visible

@latekvo latekvo requested a review from m-bert October 14, 2024 11:18
@latekvo latekvo marked this pull request as ready for review October 14, 2024 11:18
@latekvo latekvo merged commit 9fa1413 into main Oct 14, 2024
1 check passed
@latekvo latekvo deleted the @latekvo/fix-swipeable-elements-sometimes-dissapearing-when-treshold-set-high branch October 14, 2024 12:24
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.

2 participants