import React, { useState } from 'react'; import { View, Text, TouchableOpacity, Switch, ScrollView, } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { StackNavigationProp } from '@react-navigation/stack'; import { getStyles } from './preferencesScreen.styles'; import { PrimaryButton } from '@components'; import { useAppTheme } from '@theme'; import { AuthStackParamList } from '../../../navigation/authStack'; type NavProp = StackNavigationProp; const CATEGORIES = [ { key: 'food', icon: '🍔', label: 'Food' }, { key: 'groceries', icon: '🛒', label: 'Groceries' }, { key: 'pharmacy', icon: '💊', label: 'Pharmacy' }, { key: 'others', icon: '📦', label: 'Others' }, ]; export const PreferencesScreen: React.FC = () => { const { colors } = useAppTheme(); const styles = getStyles(colors); const navigation = useNavigation(); const [selectedCategories, setSelectedCategories] = useState(['food']); const [notificationsEnabled, setNotificationsEnabled] = useState(true); const toggleCategory = (key: string) => { setSelectedCategories((prev) => prev.includes(key) ? prev.filter((c) => c !== key) : [...prev, key], ); }; return ( Preferences Select your interests {CATEGORIES.map((cat) => ( toggleCategory(cat.key)} activeOpacity={0.7} > {cat.icon} {cat.label} ))} Enable Notifications Get order updates and offers navigation.navigate('OnboardingCompleteScreen')} style={{ marginTop: 32 }} /> ); };