-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
45 lines (37 loc) · 894 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
35
36
37
38
39
40
41
42
43
44
45
import { StatusBar } from 'react-native';
import { useFonts } from "expo-font"
import { fontCollection } from './src/utils/fonts';
import colors from './src/utils/colors';
import { init } from './src/utils/db';
// Navegacion
import MainNavigation from './src/navigation/MainNavigation';
// Redux
import { store } from "./src/app/store"
import { Provider } from 'react-redux'
// SQLite
(async() => {
const tabla = await init()
//console.log(tabla)
})()
//init()
const App = () => {
// Fuente de las letras
const [fontsLoaded] = useFonts(fontCollection)
if (!fontsLoaded) {
return null
}
return (
<>
{/* Barra de estado */}
<StatusBar
backgroundColor={colors.bordes}
barStyle={"dark-content"}
/>
<Provider store={store}>
{/* Navegacion */}
<MainNavigation />
</Provider>
</>
);
}
export default App