-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
31 lines (24 loc) · 1015 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
27
28
29
import { ThemeProvider } from 'styled-components';
import { StatusBar, View } from 'react-native';
import * as ScreenOrientation from 'expo-screen-orientation';
import { Home } from './src/screens/Home/index';
import { RegisterGame } from './src/screens/RegisterGame';
import {useFonts, Poppins_400Regular, Poppins_600SemiBold, Poppins_700Bold, Poppins_800ExtraBold} from '@expo-google-fonts/poppins';
import theme from './src/theme';
import { Loading } from './src/Loading';
import { Routes } from './src/routes/index';
ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.LANDSCAPE_RIGHT)
export default function App() {
const [fontsLoaded] = useFonts({Poppins_400Regular, Poppins_600SemiBold, Poppins_700Bold, Poppins_800ExtraBold})
return (
<>
<ThemeProvider theme={theme}>
<StatusBar
barStyle='dark-content'
backgroundColor="transparent"
translucent/>
{ fontsLoaded ? <Routes/> : <Loading/>}
</ThemeProvider>
</>
);
}