This commit is contained in:
Abin Toppo
2025-09-15 12:14:56 +05:30
parent 29ac0307db
commit 9be945aca5
5 changed files with 70 additions and 37 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ import {
} from "react-native";
import { RootStackParamList } from "../navigation/AppNavigator";
import * as Keychain from "react-native-keychain";
import { LOGIN_URL } from "../utils/ApiUrls";
import { LOGIN_URL, VARIFY_OTP_URL } from "../utils/ApiUrls";
import { StackNavigationProp } from "@react-navigation/stack";
const theme = {
@@ -76,7 +76,7 @@ export default function OtpVerificationScreen() {
try {
const payload = { mobile, otp };
const res = await axios.post(
"https://exotic-humpback-mistakenly.ngrok-free.app/api/user/otp/verify",
VARIFY_OTP_URL,
payload,
{ headers: { "Content-Type": "application/json", Accept: "*/*" } }
);
+2 -1
View File
@@ -15,6 +15,7 @@ import {
import * as Keychain from "react-native-keychain";
import Ionicons from "react-native-vector-icons/Ionicons";
import { launchImageLibrary, ImageLibraryOptions, Asset } from "react-native-image-picker";
import { PROFILE_URL } from "../utils/ApiUrls";
type ButtonType = "primary" | "secondary" | "danger" | "outline";
@@ -150,7 +151,7 @@ const ProfileScreen = () => {
setFetching(true);
const response = await fetch(
"https://exotic-humpback-mistakenly.ngrok-free.app/api/user/profile/view",
PROFILE_URL,
{
method: "GET",
headers: {