-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
39 lines (35 loc) · 848 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
import React from 'react';
import MainStack from './src/Navigation/MainStack';
import { Provider } from 'react-redux';
import store from './src/store';
import { init } from './src/db';
import AppLoading from 'expo-app-loading';
import {
useFonts,
OpenSans_400Regular,
OpenSans_700Bold,
OpenSans_400Regular_Italic,
} from '@expo-google-fonts/open-sans';
init()
.then(() => {
console.log('DB Inicializada rey, groso de la vida');
})
.catch((err) => {
console.log('Andá, te merecés lo que te hace aquella sabés', err);
});
const App = () => {
let [fontsLoaded] = useFonts({
openRegular: OpenSans_400Regular,
openBold: OpenSans_700Bold,
openItalic: OpenSans_400Regular_Italic,
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<Provider store={store}>
<MainStack />
</Provider>
);
};
export default App;