Update layout and localization for improved functionality

- Added AsyncStorage and utility functions for future enhancements.
- Commented out ServicesGrid component in HomeScreen for potential redesign.
- Updated English and Russian localization files with new phrases and translations for prayer times and services.
This commit is contained in:
2025-09-01 18:34:22 +05:00
parent f519052b7b
commit 3d9b8601bf
6 changed files with 86 additions and 3 deletions

View File

@@ -5,8 +5,11 @@ import { Stack } from 'expo-router';
import * as SplashScreen from 'expo-splash-screen';
import React, { useEffect } from 'react';
import 'react-native-reanimated';
import AsyncStorage from '@react-native-async-storage/async-storage';
import { initializeLanguage } from '@/i18n';
import { makeRequest } from '@/utils/makeRequest';
import { CURRENCY_RATES_ENDPOINT } from '@/utils/api';
export {
// Catch any errors thrown by the Layout component.
@@ -40,6 +43,10 @@ export default function RootLayout() {
});
}, []);
// useEffect(() => {
// }, []);
useEffect(() => {
if (loaded && langLoaded) {
SplashScreen.hideAsync();