-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathsettings.tsx
More file actions
57 lines (53 loc) · 1.64 KB
/
Copy pathsettings.tsx
File metadata and controls
57 lines (53 loc) · 1.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import React from 'react';
import { StyleSheet, View } from 'react-native';
import { ScrollView } from 'react-native-gesture-handler';
import { useRouter } from 'expo-router';
import useDefaultHeader from '../../hooks/useDefaultHeader';
import { SettingsRow } from '../../components/settings/SettingsRow';
import EditIcon from '../../assets/icons/edit.svg';
import InfoCircleIcon from '../../assets/icons/info-circle.svg';
import { useThemedStyles } from '../../hooks/useThemedStyles';
import { Theme } from '../../styles/colors';
const SettingsScreen = () => {
useDefaultHeader();
const router = useRouter();
const { styles } = useThemedStyles(createStyles);
return (
<View style={styles.container}>
<ScrollView
contentContainerStyle={styles.scrollContent}
showsVerticalScrollIndicator={false}
>
<SettingsRow
label="Personal preferences"
icon={<EditIcon width={20} height={20} style={styles.rowIcon} />}
onPress={() => router.push('/custom-system-prompt')}
/>
<SettingsRow
label="App info"
icon={
<InfoCircleIcon width={20} height={20} style={styles.rowIcon} />
}
onPress={() => router.push('/app-info')}
/>
</ScrollView>
</View>
);
};
export default SettingsScreen;
const createStyles = (theme: Theme) =>
StyleSheet.create({
container: {
flex: 1,
backgroundColor: theme.bg.softPrimary,
paddingTop: 16,
},
scrollContent: {
gap: 8,
paddingHorizontal: 16,
paddingBottom: theme.insets.bottom + 16,
},
rowIcon: {
color: theme.text.primary,
},
});