Skip to content
Closed
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
20 changes: 13 additions & 7 deletions apps/mobile/src/features/pull-requests/PullRequestSheetContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,25 @@ export function PullRequestSheetContent(props: {
{android ? <View style={{ minHeight: 48 }}>{props.footer}</View> : props.footer}
</View>
) : null;
const header = (
<SheetHeader
title={props.title}
subtitle={props.subtitle}
onCancel={() => navigation.goBack()}
dismissDisabled={props.busy}
/>
);
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}
/>
{android ? null : header}
Comment thread
shivamhwp marked this conversation as resolved.
Resolved
<ScreenContent fitToContents={android}>
<ScrollView
nestedScrollEnabled
Expand All @@ -55,6 +60,7 @@ export function PullRequestSheetContent(props: {
</ScrollView>
{android ? null : footer}
</ScreenContent>
{android ? header : null}
</KeyboardAvoidingView>
);
}
Loading