few changes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
import { useNavigation } from '@react-navigation/native';
|
||||
import {
|
||||
View,
|
||||
Text,
|
||||
@@ -12,6 +13,8 @@ import { Ionicons } from '@expo/vector-icons';
|
||||
import { COLORS } from '../../constants/colors';
|
||||
|
||||
const MenuScreen = () => {
|
||||
const navigation = useNavigation();
|
||||
|
||||
const menuSections = [
|
||||
{
|
||||
title: 'Karz',
|
||||
@@ -41,8 +44,13 @@ const MenuScreen = () => {
|
||||
];
|
||||
|
||||
const handleMenuItemPress = (item) => {
|
||||
console.log('Menu item pressed:', item.title);
|
||||
// Handle navigation or action here
|
||||
if (item.id === 2) {
|
||||
navigation.navigate('LoanRemainingOrders');
|
||||
} else if (item.id === 3) {
|
||||
navigation.navigate('LoanPaidOffLetterOrders');
|
||||
} else {
|
||||
console.log('Menu item pressed:', item.title);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user