Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions app/add-gift-idea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,13 @@ export default function AddGiftScreen() {
</View>

<View style={styles.inputGroup}>
<Text style={styles.label}>Choose Recipient</Text>
<TouchableOpacity style={styles.select}>
<Text style={styles.selectText}>Choose Recipient</Text>
<Ionicons name="chevron-down" size={24} color="#666" />
</TouchableOpacity>
<Text style={styles.label}>Recipient</Text>
<TextInput
style={styles.input}
placeholder="Enter recipient"
value={recipient}
onChangeText={setRecipient}
/>
</View>

<View style={styles.inputGroup}>
Expand Down Expand Up @@ -169,4 +171,4 @@ const styles = StyleSheet.create({
color: '#666',
fontSize: 16,
},
});
});
7 changes: 3 additions & 4 deletions app/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { useNavigation } from '@react-navigation/native';

export default function HomeScreen() {
const [selectedTab, setSelectedTab] = useState('All');
const navigation = useNavigation();

const giftIdeas = [
{
Expand All @@ -34,9 +35,7 @@ export default function HomeScreen() {
];

const handleAddGift = () => {
const navigation = useNavigation();
navigation.dispatch({ type: 'AddGiftIdea' });

navigation.navigate('AddGiftIdea');
};

return (
Expand Down Expand Up @@ -97,4 +96,4 @@ const styles = StyleSheet.create({
fontSize: 24,
fontWeight: 'bold',
},
});
});