|
1 | | -import { useSettings } from "@/src/features/settings/hooks/useSettings"; |
2 | | -import { useTheme } from "@/src/theme/useTheme"; |
3 | | -import { Pressable, Text, View } from "react-native"; |
| 1 | +import BrowserScreen from "@/src/features/browser/screens/BrowserScreen"; |
4 | 2 |
|
5 | 3 | export default function Index() { |
6 | | - const theme = useTheme(); |
7 | | - const settings = useSettings(); |
8 | | - |
9 | | - return ( |
10 | | - <View |
11 | | - style={{ |
12 | | - flex: 1, |
13 | | - justifyContent: "center", |
14 | | - alignItems: "center", |
15 | | - backgroundColor: theme.colors.background, |
16 | | - }} |
17 | | - > |
18 | | - <Text |
19 | | - style={{ |
20 | | - ...theme.typography.h4, |
21 | | - color: theme.colors.warning, |
22 | | - }} |
23 | | - > |
24 | | - The current theme color is {theme.name}.{"\n"} |
25 | | - The current theme mode is {settings.theme}. |
26 | | - </Text> |
27 | | - <Pressable onPress={() => settings.switchTheme("system")}> |
28 | | - <Text |
29 | | - style={{ |
30 | | - ...theme.typography.button, |
31 | | - color: theme.colors.textPrimary, |
32 | | - }} |
33 | | - > |
34 | | - System Theme |
35 | | - </Text> |
36 | | - </Pressable> |
37 | | - <Pressable onPress={() => settings.switchTheme("light")}> |
38 | | - <Text |
39 | | - style={{ |
40 | | - ...theme.typography.button, |
41 | | - color: theme.colors.textPrimary, |
42 | | - }} |
43 | | - > |
44 | | - Light Theme |
45 | | - </Text> |
46 | | - </Pressable> |
47 | | - <Pressable onPress={() => settings.switchTheme("dark")}> |
48 | | - <Text |
49 | | - style={{ |
50 | | - ...theme.typography.button, |
51 | | - color: theme.colors.textPrimary, |
52 | | - }} |
53 | | - > |
54 | | - Dark Theme |
55 | | - </Text> |
56 | | - </Pressable> |
57 | | - </View> |
58 | | - ); |
| 4 | + return <BrowserScreen />; |
59 | 5 | } |
0 commit comments