-
-
Notifications
You must be signed in to change notification settings - Fork 771
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
v3.0.2-alpha.0 introduces a bug that causes the onDismiss() to not be called on modal dismiss #168
Comments
* fixes #168 * chore: revert previous changes * chore: remove rounding up from use normalized snap points hook Co-authored-by: Mo Gorhom <gorhom@me.com>
thanks @mr-moto for spotting this issue and submitting a pr 👏 |
this should be resolved with |
@gorhom |
hi @oleksiikiselov , could you test on yarn add @gorhom/bottom-sheet@4.0.0-alpha.9 |
Bug
v3.0.2-alpha.0 introduces a bug that causes the
onDismiss()
to not be called on modal dismiss due to wrong animate index value calculationsreact-native-bottom-sheet/src/components/bottomSheet/BottomSheet.tsx
Line 556 in d007c88
does not equal 0 so
handleOnChange
will never trigger thus not adjusting the index to 0 and not callingdoDismiss()
inBottomSheetModal
Environment info
Steps To Reproduce
Describe what you expected to happen:
The text was updated successfully, but these errors were encountered: