-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
26 lines (24 loc) · 904 Bytes
/
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
import 'react-native-gesture-handler';
import React from 'react';
import { Platform, StatusBar } from 'react-native';
import { ThemeProvider } from 'styled-components/native';
import { NavigationContainer } from '@react-navigation/native';
import { AppRoutes } from './src/routes/app.routes';
import { AppProvider } from './src/hooks';
import theme from './src/global/styles/theme';
export default function App() {
return (
<ThemeProvider theme={theme}>
<StatusBar
barStyle="light-content"
backgroundColor={Platform.OS === 'ios' ? theme.colors.comp : theme.colors.transparent}
translucent={Platform.OS === 'android'}
/>
<NavigationContainer>
<AppProvider>
<AppRoutes />
</AppProvider>
</NavigationContainer>
</ThemeProvider>
);
}