-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
35 lines (28 loc) · 885 Bytes
/
App.tsx
File metadata and controls
35 lines (28 loc) · 885 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
32
33
34
35
import React from 'react';
import AppLoading from 'expo-app-loading';
import { useFonts, Poppins_400Regular, Poppins_500Medium } from '@expo-google-fonts/poppins';
import { NavigationContainer } from '@react-navigation/native';
import { ThemeProvider } from 'styled-components';
import { AppRoutes } from './src/routes/app.routes';
import theme from './src/global/styles/theme';
import { StatusBar } from 'react-native';
import { StorageProvider } from './src/hooks/data_storage';
export default function App() {
const [fontsLoaded] = useFonts({
Poppins_400Regular,
Poppins_500Medium
});
if (!fontsLoaded) {
return <AppLoading />
}
return (
<ThemeProvider theme={theme}>
<NavigationContainer>
<StatusBar barStyle="light-content"/>
<StorageProvider>
<AppRoutes />
</StorageProvider>
</NavigationContainer>
</ThemeProvider>
);
}