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

AndroidNavigationAppearanceSection.tsx

30 lines1.1 KB

1import { View } from "react-native";
2​
3import { ListChoiceRow as SettingsChoiceRow } from "../../../../components/ui/ListChoiceRow";
4import { SettingsSection } from "../../components/SettingsSection";
5import { useAppearancePreferences } from "../AppearancePreferencesProvider";
6​
7export function AndroidNavigationAppearanceSection() {
8 const { isReady, androidNavigationStyle, setAndroidNavigationStyle } = useAppearancePreferences();
9 return (
10 <SettingsSection title="Navigation">
11 <View accessibilityRole="radiogroup">
12 <SettingsChoiceRow
13 label="One UI"
14 description="Floating navigation with a separate compose button."
15 disabled={!isReady}
16 selected={androidNavigationStyle === "one-ui"}
17 onPress={() => setAndroidNavigationStyle("one-ui")}
18 />
19 <SettingsChoiceRow
20 label="Material"
21 description="Standard Android navigation bar and side rail."
22 disabled={!isReady}
23 selected={androidNavigationStyle === "material"}
24 onPress={() => setAndroidNavigationStyle("material")}
25 separated
26 />
27 </View>
28 </SettingsSection>
29 );