-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.tsx
More file actions
30 lines (23 loc) · 822 Bytes
/
App.tsx
File metadata and controls
30 lines (23 loc) · 822 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-native-gesture-handler'
import { StatusBar } from 'react-native'
import { ThemeProvider } from 'styled-components/native'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import { useFonts, Poppins_400Regular } from '@expo-google-fonts/poppins'
import theme from './src/theme'
import { Routes } from './src/routes'
import { Loading } from '@components/Loading'
export default function App() {
const [fontsLoaded] = useFonts({ Poppins_400Regular })
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<ThemeProvider theme={theme}>
<StatusBar
translucent
barStyle="light-content"
backgroundColor="transparent"
/>
{fontsLoaded ? <Routes/> : <Loading/>}
</ThemeProvider>
</GestureHandlerRootView>
);
}