Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

SettingsAppearanceRouteScreen.tsx

31 lines1.2 KB

1import { ScreenScrollView as ScrollView } from "../../components/ScreenScrollView";
2import { useSafeAreaInsets } from "react-native-safe-area-context";
3​
4import { SettingsScreen } from "./components/SettingsScreen";
5import { CodeAppearanceSection } from "./appearance/sections/CodeAppearanceSection";
6import { TerminalAppearanceSection } from "./appearance/sections/TerminalAppearanceSection";
7import { TextAppearanceSection } from "./appearance/sections/TextAppearanceSection";
8import { ThemeAppearanceSection } from "./appearance/sections/ThemeAppearanceSection";
9​
10export function SettingsAppearanceRouteScreen() {
11 const insets = useSafeAreaInsets();
12​
13 return (
14 <SettingsScreen title="Appearance">
15 <ScrollView
16 contentInsetAdjustmentBehavior="automatic"
17 showsVerticalScrollIndicator={false}
18 className="flex-1"
19 contentContainerClassName="gap-6 px-5 pt-4"
20 contentContainerStyle={{
21 paddingBottom: Math.max(insets.bottom, 18) + 18,
22 }}
23 >
24 <ThemeAppearanceSection />
25 <TextAppearanceSection />
26 <TerminalAppearanceSection />
27 <CodeAppearanceSection />
28 </ScrollView>
29 </SettingsScreen>
30 );