Skip to content

Commit 59cab34

Browse files
Prevent Add Project sheet from collapsing
- Keep the sheet wrapper from being flattened - Fix zero-height scroll view when the keyboard opens
1 parent d8e0ba3 commit 59cab34

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎apps/mobile/src/features/projects/AddProjectScreen.tsx‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ function AddProjectShell(props: { readonly children: ReactNode }) {
112112
const insets = useSafeAreaInsets();
113113

114114
return (
115-
<View className="flex-1 bg-sheet">
115+
// collapsable={false} is load-bearing: if this wrapper is flattened, the
116+
// ScrollView lands directly under RNSSafeAreaView and RNS's formSheet
117+
// scroll-view frame correction mistakes this full-height wrapper for a
118+
// "header" sibling, coercing the ScrollView to zero height (blank sheet
119+
// as soon as the sheet re-lays-out, e.g. when the keyboard opens).
120+
<View collapsable={false} className="flex-1 bg-sheet">
116121
<ScrollView
117122
keyboardShouldPersistTaps="handled"
118123
contentInsetAdjustmentBehavior="automatic"

0 commit comments

Comments
 (0)