Refactor settings to use stack to allow dark theme. Move theme to app reducer to allow persistence.

This commit is contained in:
Patrick Fic
2025-10-23 13:58:33 -07:00
parent f170192008
commit b1ee922066
15 changed files with 60 additions and 23 deletions

27
app/settings/_layout.tsx Normal file
View File

@@ -0,0 +1,27 @@
import { Stack, useRouter } from "expo-router";
export default function SettingsLayout() {
const router = useRouter();
return (
<Stack>
<Stack.Screen
name="index"
options={{
title: "Settings",
headerShown: false,
// headerSearchBarOptions: {
// placement: "automatic",
// placeholder: "Search",
// autoFocus: true,
// shouldShowHintSearchIcon: true,
// onChangeText: (event) => {
// router.setParams({
// globalSearch: event?.nativeEvent?.text,
// });
// },
// },
}}
/>
</Stack>
);
}

5
app/settings/index.tsx Normal file
View File

@@ -0,0 +1,5 @@
import Settings from "../../components/settings/settings";
export default function Tab() {
return <Settings />;
}