-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
31 lines (24 loc) · 987 Bytes
/
Copy pathApp.tsx
File metadata and controls
31 lines (24 loc) · 987 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
31
import 'react-native-gesture-handler'
import { StatusBar } from 'react-native'
import { ThemeProvider } from 'styled-components/native'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import { useFonts, Roboto_400Regular, Roboto_700Bold, Roboto_300Light} from '@expo-google-fonts/roboto'
import theme from './src/theme'
import { Routes } from './src/routes'
import { Loading } from '@components/Loading'
export default function App() {
const LOADING_MESSAGE = "Por favor aguarde, estamos preparando tudo"
const [fontsLoaded] = useFonts({ Roboto_400Regular, Roboto_700Bold, Roboto_300Light})
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<ThemeProvider theme={theme}>
<StatusBar
translucent
barStyle="light-content"
backgroundColor="transparent"
/>
{fontsLoaded ? <Routes/> : <Loading loadingMessage={LOADING_MESSAGE}/>}
</ThemeProvider>
</GestureHandlerRootView>
);
}