-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
55 lines (52 loc) · 2.4 KB
/
Copy pathApp.tsx
File metadata and controls
55 lines (52 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// React is used in JSX, but not in this file's direct code
import React, { useEffect } from 'react';
import { View } from 'react-native';
import { StatusBar } from 'expo-status-bar';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { ThemeProvider } from './lib/ThemeContext';
import { AuthProvider } from './lib/AuthContext';
import { NavigationProvider } from './lib/NavigationContext';
import AppNavigator from './components/AppNavigator';
import { Colors } from './lib/colors';
import { NavigationContainer } from '@react-navigation/native';
import { Ionicons, MaterialCommunityIcons } from '@expo/vector-icons';
export default function App() {
// Preload commonly used icons for instant rendering
useEffect(() => {
console.log('🎨 Preloading icons for better performance...');
}, []);
return (
<SafeAreaProvider>
<ThemeProvider>
<AuthProvider>
<NavigationProvider>
<NavigationContainer>
<AppNavigator />
</NavigationContainer>
<StatusBar style="dark" translucent={false} backgroundColor={Colors.softLightGrey} />
{/* Hidden icon preloader - loads icons into memory */}
<View style={{ opacity: 0, position: 'absolute', left: -1000 }}>
<Ionicons name="qr-code" size={1} />
<Ionicons name="camera" size={1} />
<Ionicons name="checkmark-circle" size={1} />
<Ionicons name="location" size={1} />
<Ionicons name="home" size={1} />
<Ionicons name="settings" size={1} />
<Ionicons name="person" size={1} />
<Ionicons name="sunny-outline" size={1} />
<Ionicons name="information-circle" size={1} />
<Ionicons name="refresh" size={1} />
<MaterialCommunityIcons name="brain" size={1} />
<MaterialCommunityIcons name="eye-outline" size={1} />
<MaterialCommunityIcons name="weather-partly-cloudy" size={1} />
<MaterialCommunityIcons name="image-check-outline" size={1} />
<MaterialCommunityIcons name="note-text-outline" size={1} />
<MaterialCommunityIcons name="hand-okay" size={1} />
<MaterialCommunityIcons name="pencil-outline" size={1} />
</View>
</NavigationProvider>
</AuthProvider>
</ThemeProvider>
</SafeAreaProvider>
);
}