Open History to see the last commit
1import { useNavigation } from "@react-navigation/native";
2import { Platform, ScrollView, View } from "react-native";
3import { useSafeAreaInsets } from "react-native-safe-area-context";
4
5import { AndroidScreenHeader } from "../../components/AndroidScreenHeader";
6import { NativeStackScreenOptions } from "../../native/StackHeader";
7import { CodeAppearanceSection } from "./appearance/sections/CodeAppearanceSection";
8import { TerminalAppearanceSection } from "./appearance/sections/TerminalAppearanceSection";
9import { TextAppearanceSection } from "./appearance/sections/TextAppearanceSection";
10import { ThemeAppearanceSection } from "./appearance/sections/ThemeAppearanceSection";
11
12export function SettingsAppearanceRouteScreen() {
13 const navigation = useNavigation();
14 const insets = useSafeAreaInsets();
15
16 return (
17 <View collapsable={false} className="flex-1 bg-sheet">
18 {Platform.OS === "android" ? (
19 <>
20 <NativeStackScreenOptions options={{ headerShown: false }} />
21 <AndroidScreenHeader title="Appearance" onBack={() => navigation.goBack()} />
22 </>
23 ) : null}
24 <ScrollView
25 contentInsetAdjustmentBehavior="automatic"
26 showsVerticalScrollIndicator={false}
27 className="flex-1"
28 contentContainerClassName="gap-6 px-5 pt-4"
29 contentContainerStyle={{
30 paddingBottom: Math.max(insets.bottom, 18) + 18,
31 }}
32 >
33 <ThemeAppearanceSection />
34 <TextAppearanceSection />
35 <TerminalAppearanceSection />
36 <CodeAppearanceSection />
37 </ScrollView>
38 </View>
39 );
40}