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:
@@ -77,7 +77,8 @@ export default function HomeScreen() {
|
||||
/>
|
||||
|
||||
<PrayerTimeCard />
|
||||
<ServicesGrid services={services} />
|
||||
|
||||
{/* <ServicesGrid services={services} /> */}
|
||||
</View>
|
||||
</ScrollView>
|
||||
</SafeAreaView>
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user