Refactor settings to use stack to allow dark theme. Move theme to app reducer to allow persistence.
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import Settings from "../components/settings/settings";
|
||||
|
||||
export default function Tab() {
|
||||
return <Settings />;
|
||||
}
|
||||
27
app/settings/_layout.tsx
Normal file
27
app/settings/_layout.tsx
Normal 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
5
app/settings/index.tsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import Settings from "../../components/settings/settings";
|
||||
|
||||
export default function Tab() {
|
||||
return <Settings />;
|
||||
}
|
||||
Reference in New Issue
Block a user