-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
38 lines (36 loc) · 1.47 KB
/
App.tsx
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
import { Provider } from 'jotai';
import React, { FC, Suspense } from 'react';
import { Platform, Text } from 'react-native';
import { store } from './src/atoms';
import { DebugTools } from './src/components/DebugTools';
import { TrafficLights } from './src/components/TrafficLights';
import { ModalAccountSelection } from './src/components/modals/ModalAccountSelection';
import { ModalConfirmation } from './src/components/modals/ModalConfirmation';
import { GlobalProvider } from './src/providers/GlobalProvider';
import { Main } from './src/screens/Main';
import { ColorSchemeWatcher } from './src/watchers/ColorSchemeWatcher';
import { NotificationWatcher } from './src/watchers/NotificationWatcher';
import { WorklogBackupsWatcher } from './src/watchers/WorklogBackupsWatcher';
import { WorklogDeepLinkWatcher } from './src/watchers/WorklogDeepLinkWatcher';
import { WorklogStateWatcher } from './src/watchers/WorklogStateWatcher';
const App: FC = () => {
return (
<Suspense fallback={<Text>Loading...</Text>}>
<Provider store={store}>
{Platform.OS === 'macos' && <TrafficLights />}
<ModalConfirmation />
<ModalAccountSelection />
<WorklogStateWatcher />
<WorklogDeepLinkWatcher />
<WorklogBackupsWatcher />
<NotificationWatcher />
<ColorSchemeWatcher />
<GlobalProvider>
<Main />
{__DEV__ && <DebugTools />}
</GlobalProvider>
</Provider>
</Suspense>
);
};
export default App;