-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
34 lines (26 loc) · 834 Bytes
/
App.js
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
import { StyleSheet, StatusBar } from 'react-native'
import { useFonts } from "expo-font"
import { fontCollection } from './src/utils/global/fonts'
import colors from './src/utils/global/colors'
// Redux
import { store } from "./src/app/store"
import { Provider } from 'react-redux'
// Componente de navegacion
import MainNavigation from './src/navigation/MainNavigation'
const App = () => {
const [fontsLoaded] = useFonts(fontCollection)
if (!fontsLoaded) return null //Si no esta cargada que no devuelva nada
return (
<>
<StatusBar
backgroundColor={colors.green1}
barStyle={"dark-content"}
/>
{/* La barra de navagecion no tiene sentido porque no maneja información */}
<Provider store={store}>
<MainNavigation />
</Provider>
</>
)
}
export default App