Closed trooperandz closed 1 month ago
hi @trooperandz , it seems to me that it is caused by enableDynamicSizing
being enabled ,, you need to set it to false
https://gorhom.dev/react-native-bottom-sheet/blog/bottom-sheet-v5#migration
@gorhom thank you. I tested this as well on my end with success. I appreciate the help.
Did this prop change from a default of false
to default of true
with one of the updates?
Ah, I see that the default did change from false
to true
. Not sure if this is mentioned in the release notes, but in the case that it might not be, it probably should be mentioned.
Version
v5
Reanimated Version
v3
Gesture Handler Version
v2
Platforms
iOS, Android
What happened?
I have a bottom sheet with a scroll view inside of it:
Prior to the 5.* upgrade, my bottom sheet would remain at the highest snap point, and allow the scroll view to scroll as you would expect, without the sheet moving up.
After the 5.* upgrade, now when beginning the scroll gesture, the entire sheet moves to the full height of the screen, and only then observes the proper scrolling with the scroll view once the sheet has reached the top limit of the screen.
Reproduction steps
Now run the app, and observe what is happening as described above, and as is reflected in the Expo redproduction sample below. I would expect instead, that the bottom sheet stays at the highest snap point, and allows internal scrolling as was happening properly in version 4.6.4.
Reproduction sample
https://snack.expo.dev/@trooperandz/bottom-sheet---issue-reproduction-template
Relevant log output
No response