-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.tsx
More file actions
30 lines (25 loc) · 932 Bytes
/
App.tsx
File metadata and controls
30 lines (25 loc) · 932 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 React from 'react';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { enableScreens } from 'react-native-screens';
import { DefaultTheme, NavigationContainer } from '@react-navigation/native';
import { MainStack } from 'routes';
import { ThemeProvider } from 'styled-components/native';
import { theme } from 'theme';
import colors from 'theme/colors/colors.json';
enableScreens(false);
const navTheme = DefaultTheme;
navTheme.colors.background = colors.whiteColor;
export const App: React.FC = () => {
return (
<ThemeProvider theme={theme}>
<SafeAreaProvider>
<GestureHandlerRootView style={{ flex: 1 }}>
<NavigationContainer theme={navTheme}>
<MainStack />
</NavigationContainer>
</GestureHandlerRootView>
</SafeAreaProvider>
</ThemeProvider>
);
};