authscreen fix

This commit is contained in:
tapframe 2025-09-15 23:32:16 +05:30
parent 8ff8869f05
commit 2b3069a988

View file

@ -173,6 +173,9 @@ const AuthScreen: React.FC = () => {
const msg = mode === 'signin' ? 'Logged in successfully' : 'Sign up successful';
toast.success(msg);
Haptics.notificationAsync(Haptics.NotificationFeedbackType.Success).catch(() => {});
// Navigate to main tabs after successful authentication
navigation.reset({ index: 0, routes: [{ name: 'MainTabs' as never }] } as any);
}
setLoading(false);
};