⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
feat(mobile): small improvement to the settings page
daniel31x13dae7d2be3be9
diff --git a/apps/mobile/app/(tabs)/_layout.tsx b/apps/mobile/app/(tabs)/_layout.tsxindex 347be0ca..e78b5e3a 100644--- a/apps/mobile/app/(tabs)/_layout.tsx+++ b/apps/mobile/app/(tabs)/_layout.tsx@@ -48,6 +48,7 @@ export default function TabLayout() {name="settings"options={{title: "Settings",+ headerShown: false,tabBarIcon: ({ color }) => (<IconSymbol size={28} name="gearshape.fill" color={color} />),diff --git a/apps/mobile/app/(tabs)/settings.tsx b/apps/mobile/app/(tabs)/settings.tsxdeleted file mode 100644index 55b19f41..00000000--- a/apps/mobile/app/(tabs)/settings.tsx+++ /dev/null@@ -1,21 +0,0 @@-import useAuthStore from "@/store/auth";-import { View, Text, StyleSheet, Button } from "react-native";--export default function SettingsScreen() {- const { signOut } = useAuthStore();-- return (- <View style={styles.container}>- <Text>Settings</Text>- <Button title="Sign out" onPress={() => signOut()} />- </View>- );-}--const styles = StyleSheet.create({- container: {- flex: 1,- justifyContent: "center",- alignItems: "center",- },-});diff --git a/apps/mobile/app/(tabs)/settings/_layout.tsx b/apps/mobile/app/(tabs)/settings/_layout.tsxnew file mode 100644index 00000000..6c08d60a--- /dev/null+++ b/apps/mobile/app/(tabs)/settings/_layout.tsx@@ -0,0 +1,19 @@+import { Stack, useRouter } from "expo-router";++export default function RootLayout() {+ const router = useRouter();++ return (+ <Stack+ screenOptions={{+ headerTitle: "Settings",+ headerLargeTitle: true,+ headerTransparent: true,+ headerBlurEffect: "systemUltraThinMaterial",+ headerLargeStyle: {+ backgroundColor: "white",+ },+ }}+ />+ );+}diff --git a/apps/mobile/app/(tabs)/settings/index.tsx b/apps/mobile/app/(tabs)/settings/index.tsxnew file mode 100644index 00000000..fc006b2e--- /dev/null+++ b/apps/mobile/app/(tabs)/settings/index.tsx@@ -0,0 +1,31 @@+import useAuthStore from "@/store/auth";+import { View, Text, StyleSheet, Button, ScrollView } from "react-native";++export default function SettingsScreen() {+ const { signOut } = useAuthStore();++ return (+ <View style={styles.container}>+ <ScrollView+ contentContainerStyle={{+ flexDirection: "column",+ gap: 15,+ paddingVertical: 20,+ alignItems: "center",+ }}+ contentInsetAdjustmentBehavior="automatic"+ >+ <Text>Settings</Text>+ <Button title="Sign out" onPress={() => signOut()} />+ </ScrollView>+ </View>+ );+}++const styles = StyleSheet.create({+ container: {+ flex: 1,+ justifyContent: "center",+ alignItems: "center",+ },+});