|
@@ -1,7 +1,6 @@
|
|
"use strict";
|
|
"use strict";
|
|
|
|
|
|
import React, {Component} from 'react';
|
|
import React, {Component} from 'react';
|
|
-import {addNavigationHelpers} from 'react-navigation';
|
|
|
|
import {createReactNavigationReduxMiddleware, createReduxBoundAddListener} from 'react-navigation-redux-helpers';
|
|
import {createReactNavigationReduxMiddleware, createReduxBoundAddListener} from 'react-navigation-redux-helpers';
|
|
import {connect} from 'react-redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
|
|
@@ -14,7 +13,7 @@ export const navigatorPieces = (BareNavigator, name = "root") => {
|
|
render () {
|
|
render () {
|
|
const {dispatch, navigationState} = this.props;
|
|
const {dispatch, navigationState} = this.props;
|
|
return <BareNavigator
|
|
return <BareNavigator
|
|
- navigation={addNavigationHelpers({dispatch, state: navigationState, addListener})}
|
|
|
|
|
|
+ navigation={{dispatch, state: navigationState, addListener}}
|
|
/>;
|
|
/>;
|
|
}
|
|
}
|
|
}
|
|
}
|