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

SettingsAppearanceRouteScreen.tsx

28 lines990 Bytes

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