-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
35 lines (31 loc) · 820 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
import 'react-native-gesture-handler';
import React from 'react';
import { Provider } from 'react-redux';
import store from './store/store';
import {
BalsamiqSans_400Regular as Fonts_400,
BalsamiqSans_700Bold as Fonts_700,
useFonts,
} from '@expo-google-fonts/balsamiq-sans';
import AppLoading from 'expo-app-loading';
import ShopDrawerNavigator from './navigation/ShopDrawerNavigator';
import { setNotificationHandler } from 'expo-notifications';
setNotificationHandler({
handleNotification: async () => {
return { shouldShowAlert: true };
},
});
export default function App(props) {
const [fontsLoaded] = useFonts({
Fonts_400,
Fonts_700,
});
if (!fontsLoaded) {
return <AppLoading />;
}
return (
<Provider store={store}>
<ShopDrawerNavigator />
</Provider>
);
}