-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
53 lines (44 loc) · 1.14 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
import React from 'react';
import {
DrawerNavigator,
StackNavigator
} from 'react-navigation';
import { withRkTheme } from 'react-native-ui-kitten';
import { RootRoutes } from './app/config/routes'
import logger from "redux-logger";
import { bootstrap } from './app/config/bootstrap';
import { Provider } from "react-redux";
import configureStore from './app/store/configureStore';
import AppWithNavigationState from './app/containers/AppNavigator';
bootstrap();
function getCurrentRouteName(navigationState) {
if (!navigationState) {
return null;
}
const route = navigationState.routes[navigationState.index];
if (route.routes) {
return getCurrentRouteName(route);
}
return route.routeName;
}
//let SideMenu = withRkTheme(Screens.SideMenu);
// const KittenApp = StackNavigator({
// Splash: {
// screen: SplashScreen,
// }, ...RootRoutes
// },
// {
// headerMode: 'none',
// }
// );
class ReduxExampleApp extends React.Component {
store = configureStore({});
render() {
return (
<Provider store={this.store}>
<AppWithNavigationState />
</Provider>
);
}
}
export default ReduxExampleApp;