register update

This commit is contained in:
Samandar Turgunboyev
2026-03-18 17:56:26 +05:00
parent a34cf75c57
commit 22c1688781
31 changed files with 631 additions and 1080 deletions

View File

@@ -19,10 +19,7 @@ export const deleteAsyncStorage = async (name: string) => {
export const saveLang = async (lang: string) => {
try {
await AsyncStorage.setItem('lang', lang);
console.log(`Language saved: ${lang}`);
} catch (error) {
console.error('Failed to save language', error);
}
} catch (error) { }
};
/**
@@ -34,7 +31,6 @@ export const getLang = async (): Promise<string | null> => {
const lang = await AsyncStorage.getItem('lang');
return lang;
} catch (error) {
console.error('Failed to get language', error);
return null;
}
};
@@ -45,9 +41,7 @@ export const getLang = async (): Promise<string | null> => {
export const deleteLang = async () => {
try {
await AsyncStorage.removeItem('lang');
} catch (error) {
console.error('Failed to delete language', error);
}
} catch (error) { }
};
const ACCESS = 'access_token';

View File

@@ -45,7 +45,6 @@ export function useNotifications() {
// Foreground listener
notificationListener.current = Notifications.addNotificationReceivedListener((notification) => {
console.log('Notification received:', notification);
});
// User response listener