diff --git a/app/add-gift-idea.tsx b/app/add-gift-idea.tsx
index 02e66d7..5129fee 100644
--- a/app/add-gift-idea.tsx
+++ b/app/add-gift-idea.tsx
@@ -52,11 +52,13 @@ export default function AddGiftScreen() {
- Choose Recipient
-
- Choose Recipient
-
-
+ Recipient
+
@@ -169,4 +171,4 @@ const styles = StyleSheet.create({
color: '#666',
fontSize: 16,
},
-});
\ No newline at end of file
+});
diff --git a/app/index.tsx b/app/index.tsx
index 00d3447..ddeab2d 100644
--- a/app/index.tsx
+++ b/app/index.tsx
@@ -8,6 +8,7 @@ import { useNavigation } from '@react-navigation/native';
export default function HomeScreen() {
const [selectedTab, setSelectedTab] = useState('All');
+ const navigation = useNavigation();
const giftIdeas = [
{
@@ -34,9 +35,7 @@ export default function HomeScreen() {
];
const handleAddGift = () => {
- const navigation = useNavigation();
- navigation.dispatch({ type: 'AddGiftIdea' });
-
+ navigation.navigate('AddGiftIdea');
};
return (
@@ -97,4 +96,4 @@ const styles = StyleSheet.create({
fontSize: 24,
fontWeight: 'bold',
},
-});
\ No newline at end of file
+});