|
| 1 | +import { ThemedView } from "@/components/ThemedView"; |
| 2 | +import AuthenticationSettings from "@/components/settings/AuthenticationSettings"; |
| 3 | +import PrivacyPolicy from "@/components/settings/PrivacyPolicy"; |
| 4 | +import Customization from "@/components/settings/Customization"; |
| 5 | +import DataSettings from "@/components/settings/DataSettings"; |
| 6 | +import { Text, Divider, useTheme } from "react-native-paper"; |
| 7 | +import { ScrollView, SafeAreaView, StyleSheet } from "react-native"; |
| 8 | +import ThemeSelector from "@/components/settings/ThemeSelector"; |
| 9 | +import FadeInView from "@/components/animations/FadeInView"; |
| 10 | +import NotificationSettings from "@/components/settings/NotificationSettings"; |
| 11 | +import WalkthroughReplay from "@/components/settings/WalkthroughReplay"; |
| 12 | +import TrackingModeSettings from "@/components/settings/TrackingModeSettings"; |
| 13 | + |
| 14 | +export default function PregnancySettings() { |
| 15 | + const theme = useTheme(); |
| 16 | + return ( |
| 17 | + <FadeInView duration={200} backgroundColor={theme.colors.background}> |
| 18 | + <ThemedView style={{ height: "100%", padding: 10 }}> |
| 19 | + <SafeAreaView style={{ flex: 1 }}> |
| 20 | + <Text |
| 21 | + variant="titleLarge" |
| 22 | + style={{ |
| 23 | + textAlign: "center", |
| 24 | + fontSize: 30, |
| 25 | + fontWeight: "bold", |
| 26 | + color: theme.colors.onBackground, |
| 27 | + paddingTop: 4, |
| 28 | + }} |
| 29 | + > |
| 30 | + Settings |
| 31 | + </Text> |
| 32 | + <Divider style={{ marginTop: 10 }} /> |
| 33 | + <ScrollView contentContainerStyle={{ paddingBottom: 60 }}> |
| 34 | + <TrackingModeSettings /> |
| 35 | + <Divider style={styles.divider} /> |
| 36 | + <AuthenticationSettings /> |
| 37 | + <Divider style={styles.divider} /> |
| 38 | + <Customization /> |
| 39 | + <Divider style={styles.divider} /> |
| 40 | + <ThemeSelector /> |
| 41 | + <Divider style={styles.divider} /> |
| 42 | + <DataSettings /> |
| 43 | + <Divider style={styles.divider} /> |
| 44 | + <NotificationSettings /> |
| 45 | + <WalkthroughReplay /> |
| 46 | + <Divider style={styles.divider} /> |
| 47 | + <PrivacyPolicy /> |
| 48 | + </ScrollView> |
| 49 | + </SafeAreaView> |
| 50 | + </ThemedView> |
| 51 | + </FadeInView> |
| 52 | + ); |
| 53 | +} |
| 54 | + |
| 55 | +const styles = StyleSheet.create({ |
| 56 | + divider: { |
| 57 | + marginBottom: 0.2, |
| 58 | + }, |
| 59 | +}); |
0 commit comments