Prevent Add Project sheet from collapsing on relayout (#3759)

This commit is contained in:
Julius Marminge authored and GitHub committed 2026-07-07 01:58:29 -07:00
1 parent d8e0ba3ea0
commit f9727d0853
1 file changed
+6 -1
@@ -112,7 +112,12 @@ function AddProjectShell(props: { readonly children: ReactNode }) {
const insets = useSafeAreaInsets();
return (
<View className="flex-1 bg-sheet">
// collapsable={false} is load-bearing: if this wrapper is flattened, the
// ScrollView lands directly under RNSSafeAreaView and RNS's formSheet
// scroll-view frame correction mistakes this full-height wrapper for a
// "header" sibling, coercing the ScrollView to zero height (blank sheet
// as soon as the sheet re-lays-out, e.g. when the keyboard opens).
<View collapsable={false} className="flex-1 bg-sheet">
<ScrollView
keyboardShouldPersistTaps="handled"
contentInsetAdjustmentBehavior="automatic"