From ecd965fd9a6d1e5ae98ee2b3205b20c4137defad Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 27 Apr 2026 15:49:04 -0300 Subject: [PATCH 1/2] fix(VoIP): drop forced 100% height from fullContainer action-sheet style The shared `fullContainer` action-sheet style forced `height: '100%'` on the inner wrapping View. For callers that pass `fullContainer: true` without snaps (NewMediaCall is the only such caller), this caused the contentHeight-driven detent calculation in `useActionSheetDetents` to lock the sheet at the max detent (0.75), leaving a large empty area below the Call button on Android. iOS skipped this path and rendered correctly. Removing `height: '100%'` lets the inner View size to its children, so onLayout reports the actual intrinsic content height and the detent computes correctly. The 4 other `fullContainer: true` callsites all pass snaps, which short-circuits the contentHeight branch in `useActionSheetDetents`; their detents come from the snaps and are not affected by this change. Empty-space symptom introduced by #7235. --- app/containers/ActionSheet/styles.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/app/containers/ActionSheet/styles.ts b/app/containers/ActionSheet/styles.ts index 5a98ca3b545..f38544f2615 100644 --- a/app/containers/ActionSheet/styles.ts +++ b/app/containers/ActionSheet/styles.ts @@ -68,7 +68,6 @@ export default StyleSheet.create({ }, fullContainer: { width: '100%', - height: '100%', flex: 0 } }); From 319920551dce2441f4919237be7ffafeb7d34c94 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 27 Apr 2026 16:24:00 -0300 Subject: [PATCH 2/2] fix(VoIP): drop flex: 1 from NewMediaCall screen Without `height: '100%'` on the parent `fullContainer` wrapper, the inner `screen` View's `flex: 1` collapses to padding-only height (~84px) inside the unconstrained `flex: 0` parent. On Android only the bottom subset of children (search input, selected-peer pill, Call button) renders visibly; the "New call" title and the "Enter username or number" helper are clipped. Dropping `flex: 1` lets the screen size to its children's intrinsic heights, so the full UI renders and the sheet detent (computed from onLayout) reflects actual content height. --- app/containers/NewMediaCall/NewMediaCall.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/app/containers/NewMediaCall/NewMediaCall.tsx b/app/containers/NewMediaCall/NewMediaCall.tsx index 6d7ba5968ab..8dfa5478265 100644 --- a/app/containers/NewMediaCall/NewMediaCall.tsx +++ b/app/containers/NewMediaCall/NewMediaCall.tsx @@ -27,7 +27,6 @@ export const NewMediaCall = (): React.ReactElement => { const styles = StyleSheet.create({ screen: { - flex: 1, paddingHorizontal: 16, paddingTop: 16 }