generated from noddy1996/react-native-redux-starter
-
Notifications
You must be signed in to change notification settings - Fork 97
/
Copy pathApp.js
53 lines (48 loc) · 1.67 KB
/
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
46
47
48
49
50
51
52
53
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React ,{useEffect,useState}from 'react';
import MainStack from './app/routing/MainStack';
import {Provider} from 'react-redux';
import {StatusBar} from 'react-native';
import storePre from './app/redux/store';
import DropdownAlert from 'react-native-dropdownalert';
import {AlertHelper} from './app/utils/AlertHelper';
import {PersistGate} from 'redux-persist/integration/react';
import TabNavigationStack from './app/routing/TabNavigationStack';
import {navigationTypeTabs} from './app.json';
import Feather from 'react-native-vector-icons/Feather';
import Ionicons from 'react-native-vector-icons/Ionicons';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons';
MaterialIcons.loadFont()
Ionicons.loadFont()
FontAwesome.loadFont()
Feather.loadFont()
MaterialCommunityIcons.loadFont()
const App: () => React$Node = () => {
const {persistor, store} = storePre;
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
{/* navigationTypeTabs ? <TabNavigationStack/> : <MainStack /> */}
<MainStack />
<DropdownAlert
defaultContainer={{
padding: 8,
paddingTop: StatusBar.currentHeight,
flexDirection: 'row',
}}
ref={(ref) => AlertHelper.setDropDown(ref)}
onClose={() => AlertHelper.invokeOnClose()}
/>
</PersistGate>
</Provider>
);
};
export default App;