This commit is contained in:
Abin Toppo
2026-01-19 17:16:03 +05:30
parent b6c927367d
commit 7c949eb570
5 changed files with 34 additions and 22 deletions
+6 -8
View File
@@ -52,7 +52,7 @@ import {
X,
Save,
} from 'lucide-react-native';
import { useNavigation } from '@react-navigation/native';
import { useFocusEffect, useNavigation } from '@react-navigation/native';
import { useContractorProfile, useUpdateUserProfile, useESetuAdharVarification } from '../../Services/BBPS/Hooks';
import colors from '../../Constant/Color';
@@ -187,6 +187,10 @@ const ProfileTab: React.FC = () => {
}
};
useFocusEffect(()=>{
setIsNavigating(false)
})
const handleProceedVerification = async () => {
try {
setIsNavigating(true);
@@ -379,13 +383,7 @@ const ProfileTab: React.FC = () => {
loading={isPending || isNavigating}
/>
{/* Navigation Overlay */}
{isNavigating && (
<View style={styles.navigationOverlay}>
<ActivityIndicator size="large" color={colors.primary || '#2563EB'} />
<Text style={styles.loadingText}>Loading verification...</Text>
</View>
)}
</>
);
};