import React, { useState } from 'react'; import { View, Text, KeyboardAvoidingView, Platform, ScrollView, TouchableOpacity, } from 'react-native'; import { useNavigation } from '@react-navigation/native'; import { StackNavigationProp } from '@react-navigation/stack'; import { getStyles } from './completeProfileScreen.styles'; import { CustomInput, PrimaryButton } from '@components'; import { useAppTheme } from '@theme'; import { completeProfile } from '../../../store/commonreducers/auth'; import { AuthStackParamList } from '../../../navigation/authStack'; import { useAppDispatch } from '@store'; type NavProp = StackNavigationProp; const LOCATION_LABELS = ['Home', 'Work', 'Other']; export const CompleteProfileScreen: React.FC = () => { const { colors } = useAppTheme(); const styles = getStyles(colors); const navigation = useNavigation(); const dispatch = useAppDispatch(); const [name, setName] = useState(''); const [email, setEmail] = useState(''); const [selectedLabel, setSelectedLabel] = useState('Home'); const handleSave = () => { dispatch(completeProfile({ name, email, locationLabels: [selectedLabel] })); navigation.navigate('PreferencesScreen'); }; return ( Complete Profile Tell us about yourself Location Label {LOCATION_LABELS.map(label => ( setSelectedLabel(label)} activeOpacity={0.7} > {label} ))} ); };