From b54248250357ec30204d794f9cf7ff94cd7d239f Mon Sep 17 00:00:00 2001 From: gorhom Date: Mon, 14 Oct 2024 21:57:36 +0100 Subject: [PATCH] docs: added migration section to v5 blog post --- website/blog/2024-10-05-bottom-sheet-v5.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/blog/2024-10-05-bottom-sheet-v5.mdx b/website/blog/2024-10-05-bottom-sheet-v5.mdx index dcd4a2a4..16169f13 100644 --- a/website/blog/2024-10-05-bottom-sheet-v5.mdx +++ b/website/blog/2024-10-05-bottom-sheet-v5.mdx @@ -85,6 +85,10 @@ This feature is enabled by default, Read more about [FlashList](/components/bott The bottom sheet has multiple events that trigger its snapping to positions, whether a change in a snap point value, container height or the keyboard appearance. Since the introduction of keyboard handling in `v4` there has been multiple issues reported regarding the bottom sheet snapping to a wrong position or sometimes not even reacting to resizing events. With this release, I have refactored the whole snapping mechanism from the scratch and built it working backward from the edge cases such as: content resizing, container resizing and keyboard appearance. +## Migration + +As the introduction of the [Dynamic Sizing](/dynamic-sizing), many might find their bottom sheets heights changes as it is enabled by default. To avoid such issues while migrating to **v5**, I recommend disabling it by setting the prop `enableDynamicSizing` to `false`, then try to figure out whether to use it or limit the dynamic content height by setting the prop `maxDynamicContentSize`. + ## Breaking Changes - Updated Gesture Handler to **v2**