-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
30 lines (28 loc) · 893 Bytes
/
Copy pathApp.tsx
File metadata and controls
30 lines (28 loc) · 893 Bytes
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
import { NavigationContainer } from '@react-navigation/native'
import RootNavigation from './src/navigations/root'
import { PaperProvider } from 'react-native-paper'
import { useColorScheme } from 'react-native';
import SplashScreen from 'react-native-splash-screen'
import { Provider } from 'react-redux'
import store from './src/redux/store'
import { useEffect } from 'react'
import { DarkTheme } from './src/utils/theme/darkschema';
import { LightTheme } from './src/utils/theme/lightschema';
export default function App() {
useEffect(() => {
SplashScreen.hide();
}, [])
const scheme = useColorScheme();
return (
<Provider store={store}>
<PaperProvider theme={
scheme === 'dark' ?
DarkTheme : LightTheme
}>
<NavigationContainer >
<RootNavigation />
</NavigationContainer>
</PaperProvider>
</Provider>
)
}