-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
26 lines (23 loc) · 672 Bytes
/
App.tsx
File metadata and controls
26 lines (23 loc) · 672 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
import { Loading } from '@components/Loading'
import {
NunitoSans_400Regular,
NunitoSans_700Bold,
useFonts,
} from '@expo-google-fonts/nunito-sans'
import { StatusBar } from 'react-native'
import { ThemeProvider } from 'styled-components/native'
import { Routes } from './src/routes'
import theme from './src/theme'
export default function App() {
const [fontsLoaded] = useFonts({ NunitoSans_400Regular, NunitoSans_700Bold })
return (
<ThemeProvider theme={theme}>
<StatusBar
barStyle="dark-content"
backgroundColor="transparent"
translucent
/>
{fontsLoaded ? <Routes /> : <Loading />}
</ThemeProvider>
)
}