-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
31 lines (28 loc) · 1.02 KB
/
App.jsx
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
/* eslint-disable no-undef */
import {NavigationContainer} from '@react-navigation/native';
import React from 'react';
import {LogBox, Appearance} from 'react-native';
import {FirebaseProvider} from './src/context/FirebaseContext';
import {SettingsProvider} from './src/context/SettingsContext';
import {ThemeManager} from './src/context/ThemeManager';
import {UserProvider} from './src/context/UserContext';
import AppStack from './src/navigation/AppStack';
import {DarkTheme, LightTheme} from './src/styles/AppTheme';
LogBox.ignoreLogs(['Setting a timer', 'Require cycle']);
export default App = () => {
const colorScheme = Appearance.getColorScheme();
return (
<ThemeManager>
<FirebaseProvider>
<UserProvider>
<SettingsProvider>
<NavigationContainer
theme={colorScheme === 'dark' ? DarkTheme : LightTheme}>
<AppStack />
</NavigationContainer>
</SettingsProvider>
</UserProvider>
</FirebaseProvider>
</ThemeManager>
);
};