Open History to see the last commit
1import type { ComponentProps } from "react";
2import { Platform, ScrollView } from "react-native";
3
4/** Keeps forms and settings readable inside a wide pane while its surface fills the screen. */
5export function ScreenScrollView(props: ComponentProps<typeof ScrollView>) {
6 return (
7 <ScrollView
8 {...props}
9 contentContainerStyle={[
10 props.contentContainerStyle,
11 Platform.OS === "android" && {
12 width: "100%",
13 maxWidth: 720,
14 alignSelf: "center",
15 },
16 ]}
17 />
18 );
19}