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: removed rounding up from useNormalizedSnapPoints hook. #169

Merged
merged 3 commits into from
Jan 8, 2021

Conversation

mr-moto
Copy link
Contributor

@mr-moto mr-moto commented Jan 8, 2021

went ahead and fixed the cause of the modal not showing after the first dismiss.

_animatedIndex was resulting in a decimal number causing _animatedIndex % 1 === 0 to be false and never triggering runOnJS(handleOnChange)
This caused the index to be stuck at 1 and did not trigger the doDismiss function in BottomSheetModal

@mr-moto mr-moto changed the title fixes #168 Fixes Modal dismiss bug in 3.0.2-alpha Jan 8, 2021
@gorhom gorhom changed the title Fixes Modal dismiss bug in 3.0.2-alpha fix: removed rounding up from useNormalizedSnapPoints hook. Jan 8, 2021
@gorhom gorhom added the v3 Written in Reanimated v2 label Jan 8, 2021
@gorhom gorhom merged commit 1257c46 into gorhom:v3 Jan 8, 2021
mr-moto added a commit to mr-moto/react-native-bottom-sheet that referenced this pull request Jan 9, 2021
fix: removed rounding up from useNormalizedSnapPoints hook. (gorhom#169)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 Written in Reanimated v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants