-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
39 lines (35 loc) · 1.3 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
39
import * as React from 'react';
import { StatusBar } from 'expo-status-bar';
import { ThemeProvider } from 'styled-components/native';
import { createStackNavigator } from '@react-navigation/stack';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { AuthRoutes } from '@screens/Authentication'
import { HomeRouters } from '@screens/Home';
import LoadAssets from '@components/LoadAssets';
import theme from './src/theme';
const { Navigator, Screen } = createStackNavigator();
const fonts = {
'SFProText-Bold': require('./assets/fonts/SF-Pro-Text-Bold.otf'),
'SFProText-Semibold': require('./assets/fonts/SF-Pro-Text-Semibold.otf'),
'SFProText-Regular': require('./assets/fonts/SF-Pro-Text-Regular.otf'),
};
export default function App() {
return (
<ThemeProvider theme={theme}>
<StatusBar style='dark' translucent backgroundColor='transparent' />
<LoadAssets {...{ fonts }}>
<SafeAreaProvider>
<Navigator
initialRouteName={'Home'}
screenOptions={{
headerShown: false,
}}
>
<Screen name='Authentication' component={AuthRoutes} />
<Screen name='Home' component={HomeRouters} />
</Navigator>
</SafeAreaProvider>
</LoadAssets>
</ThemeProvider>
);
}