Skip to content

Conversation

@pgill-rbi
Copy link

Please see full detail of the bug addressed here: #1374

Motivation

Explain the motivation for making this change. What existing problem does the pull request solve?

On Android specifically, the Sheet would intermittently re-open after closing it in the following scenario:

Keyboard is open
Detent is 100%
This was an issue within the @gorhom/bottom-sheet library where the function normalizeSnapPoints would not change the true pixel value of a 100% detent. It always equates to 0. This is specific to Android with adjustResize as the keyboard behaviour.

A condition was added as a patch to prevent exiting a function (onSnapPointsChange) which allows the Sheet to react to snap point changes mid-animation.

@gorhom
Copy link
Owner

gorhom commented Jun 4, 2023

thanks @pgill-rbi for submitting this CR, i have pushed another one to address this issue with a scalable approach
#1392

@gorhom gorhom closed this Jun 4, 2023
@pgill-rbi
Copy link
Author

@gorhom the problem still persists with #1392 using release 4.4.7.

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