-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
21 lines (19 loc) · 856 Bytes
/
App.tsx
File metadata and controls
21 lines (19 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// App.tsx
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { LoyaltyProvider } from './context/LoyaltyContext.tsx';
import AppNavigator from './navigation/AppNavigator.tsx';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { StatusBar } from 'expo-status-bar';
export default function App() {
return (
<SafeAreaProvider> {/* Recommended for handling safe areas */}
<LoyaltyProvider> {/* Wraps the app with loyalty state */}
<NavigationContainer> {/* Handles navigation state */}
<AppNavigator /> {/* Renders the main tab navigator */}
</NavigationContainer>
</LoyaltyProvider>
<StatusBar style="auto" /> {/* Controls the status bar style */}
</SafeAreaProvider>
);
}