Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,15 @@ export function PullRequestSheetContent(props: {
</View>
) : null;
return (
// Material sheet drags follow the first nested-scrolling native view, and the inline
// header's Compose button is one, so Android renders content first and reverses the column.
<KeyboardAvoidingView
automaticOffset
behavior="padding"
collapsable={false}
className="bg-sheet ios:flex-1"
className="bg-sheet ios:flex-1 android:flex-col-reverse"
style={android ? { maxHeight: windowHeight * 0.92 } : undefined}
>
<SheetHeader
title={props.title}
subtitle={props.subtitle}
onCancel={() => navigation.goBack()}
dismissDisabled={props.busy}
/>
<ScreenContent fitToContents={android}>
<ScrollView
nestedScrollEnabled
Expand All @@ -55,6 +51,12 @@ export function PullRequestSheetContent(props: {
</ScrollView>
{android ? null : footer}
</ScreenContent>
<SheetHeader
title={props.title}
subtitle={props.subtitle}
onCancel={() => navigation.goBack()}
dismissDisabled={props.busy}
/>
</KeyboardAvoidingView>
);
}
Loading