notification

This commit is contained in:
Abin Toppo
2025-10-07 16:06:05 +05:30
parent ba3d4f7579
commit a2d2ae580f
21 changed files with 312 additions and 249 deletions
+2
View File
@@ -64,6 +64,7 @@ export default function LoginScreen() {
if (mobile.length === 10) {
setLoading(true);
try {
console.log("Login api call:");
// FIX: Used the imported LOGIN_URL constant instead of a string literal
const res = await axios.get(LOGIN_URL, { params: { mobile } });
console.log("Login response:", res.data);
@@ -76,6 +77,7 @@ export default function LoginScreen() {
[{ text: "Try Again", onPress: hideAlert }],
'error'
);
}
} catch (error: any) {
console.error("Login error:", error);