upd: tampilan

Deskripsi:
- toast
- firebase

No Issues
This commit is contained in:
2025-07-28 17:56:42 +08:00
parent 8a085ced45
commit 86a80213ca
10 changed files with 69 additions and 28 deletions

View File

@@ -4,6 +4,7 @@ import AsyncStorage from '@react-native-async-storage/async-storage';
import CryptoES from "crypto-es";
import { router } from "expo-router";
import { createContext, MutableRefObject, ReactNode, useCallback, useContext, useEffect, useRef, useState } from 'react';
import { Platform } from 'react-native';
const AuthContext = createContext<{
signIn: (arg0: string) => void;
@@ -76,7 +77,9 @@ export default function AuthProvider({ children }: { children: ReactNode }): Rea
try {
const hasil = await decryptToken(String(tokenRef.current))
const token = await getToken()
const response = await apiUnregisteredToken({ user: hasil, token: String(token) })
if (Platform.OS === 'android'){
const response = await apiUnregisteredToken({ user: hasil, token: String(token) })
}
} catch (error) {
console.error(error)
} finally {