2024-05-13 18:43:57 +02:00
|
|
|
import 'react-native-gesture-handler'; // should be on top
|
2024-05-20 11:54:13 +02:00
|
|
|
|
|
|
|
import { NavigationContainer } from '@react-navigation/native';
|
2024-05-16 00:06:55 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { useColorScheme } from 'react-native';
|
2024-05-13 18:43:57 +02:00
|
|
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
2024-05-15 13:43:13 +02:00
|
|
|
import { LargeScreenProvider } from './components/Context/LargeScreenProvider';
|
2024-05-31 19:18:01 +02:00
|
|
|
import { SettingsProvider } from './components/Context/SettingsProvider';
|
2024-05-20 11:54:13 +02:00
|
|
|
import { BlueDarkTheme, BlueDefaultTheme } from './components/themes';
|
2024-05-18 17:36:16 +02:00
|
|
|
import MasterView from './navigation/MasterView';
|
2024-05-20 11:54:13 +02:00
|
|
|
import { navigationRef } from './NavigationService';
|
2024-05-31 19:18:01 +02:00
|
|
|
import { StorageProvider } from './components/Context/StorageProvider';
|
2024-05-13 18:43:57 +02:00
|
|
|
|
|
|
|
const App = () => {
|
|
|
|
const colorScheme = useColorScheme();
|
|
|
|
|
|
|
|
return (
|
2024-05-15 13:43:13 +02:00
|
|
|
<LargeScreenProvider>
|
|
|
|
<NavigationContainer ref={navigationRef} theme={colorScheme === 'dark' ? BlueDarkTheme : BlueDefaultTheme}>
|
2024-05-21 23:57:09 +02:00
|
|
|
<SafeAreaProvider>
|
2024-05-31 19:18:01 +02:00
|
|
|
<StorageProvider>
|
2024-05-21 23:57:09 +02:00
|
|
|
<SettingsProvider>
|
|
|
|
<MasterView />
|
|
|
|
</SettingsProvider>
|
2024-05-31 19:18:01 +02:00
|
|
|
</StorageProvider>
|
2024-05-21 23:57:09 +02:00
|
|
|
</SafeAreaProvider>
|
2024-05-15 13:43:13 +02:00
|
|
|
</NavigationContainer>
|
|
|
|
</LargeScreenProvider>
|
2024-05-13 18:43:57 +02:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default App;
|