From 5a122230a7bc64aa5d1f8156031a1ddb9c56fde0 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 1 Mar 2026 08:18:11 +0000 Subject: [PATCH] Fix OnLayoutChangeListener lambda parameter count The lambda had 10 destructured parameters but OnLayoutChangeListener only passes 9 (view, left, top, right, bottom, oldLeft, oldTop, oldRight, oldBottom). Remove the extra placeholder. https://claude.ai/code/session_01Rp7ef1h3fKh6fhStcjqLJ5 --- .../src/main/java/expo/modules/bottomsheet/BottomSheetView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bottom-sheet/android/src/main/java/expo/modules/bottomsheet/BottomSheetView.kt b/modules/bottom-sheet/android/src/main/java/expo/modules/bottomsheet/BottomSheetView.kt index f636d4f8ea..f0c4a768c4 100644 --- a/modules/bottom-sheet/android/src/main/java/expo/modules/bottomsheet/BottomSheetView.kt +++ b/modules/bottom-sheet/android/src/main/java/expo/modules/bottomsheet/BottomSheetView.kt @@ -324,7 +324,7 @@ class BottomSheetView( val innerViewGroup = this.innerView as? ViewGroup ?: return val contentView = innerViewGroup.getChildAt(0) ?: return - val listener = View.OnLayoutChangeListener { _, _, top, _, bottom, _, _, oldTop, _, oldBottom -> + val listener = View.OnLayoutChangeListener { _, _, top, _, bottom, _, oldTop, _, oldBottom -> val newHeight = bottom - top val oldHeight = oldBottom - oldTop if (newHeight != oldHeight && newHeight > 0 && (isOpen || isOpening) && !isClosing) {