mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-03 19:42:03 +03:00
19 lines
540 B
JavaScript
19 lines
540 B
JavaScript
import { connect } from 'react-redux';
|
|
import {
|
|
reduxifyNavigator,
|
|
createReactNavigationReduxMiddleware,
|
|
} from 'react-navigation-redux-helpers';
|
|
import AppNavigation from './routes';
|
|
|
|
const middleware = createReactNavigationReduxMiddleware('root', state => state.nav);
|
|
|
|
const AppWithNavigationState = reduxifyNavigator(AppNavigation, 'root');
|
|
|
|
const mapStateToProps = state => ({
|
|
state: state.nav,
|
|
});
|
|
|
|
const ReduxNavigation = connect(mapStateToProps)(AppWithNavigationState);
|
|
|
|
export { AppNavigation, ReduxNavigation, middleware };
|