diff --git a/CHANGELOG.md b/CHANGELOG.md index a868a370..09c30316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### 🐛 Bug fixes + +- **Android**: A sheet with `grabber={false}` whose `scrollableRef` scroll view mounts after the sheet presents, such as content that shows a loader first, now closes on a short pull with `dismissThreshold="short"`. The pull used to spring back. ([#1024](https://github.com/lodev09/react-native-true-sheet/pull/1024) by [@isaacrowntree](https://github.com/isaacrowntree)) + ### 💡 Others - The Expo example in `example/expo` now runs SDK 58, and the SDK 57 example moves to `example/expo-57` (`yarn expo-57`). The bare example is upgraded to React Native 0.88. ([#1016](https://github.com/lodev09/react-native-true-sheet/pull/1016) by [@lodev09](https://github.com/lodev09)) diff --git a/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt b/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt index a17d8ca3..9222e37c 100644 --- a/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt +++ b/android/src/main/java/com/lodev09/truesheet/TrueSheetView.kt @@ -365,6 +365,9 @@ class TrueSheetView(private val reactContext: ThemedReactContext) : if (viewController.scrollableHandle == handle) return viewController.scrollableHandle = handle setupScrollable() + // BottomSheetBehavior only looks for its nested scrolling child in onLayoutChild, and + // nothing else is sure to lay the sheet out after a handle that arrives once it is presented. + viewController.sheetView?.requestLayout() } fun setAbsoluteHeader(absolute: Boolean) {