mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-12 22:30:36 +08:00
fix: add back change to defaultNavigationOptions
This commit is contained in:
@@ -5,7 +5,7 @@ import invariant from '../utils/invariant';
|
||||
function createNavigator(NavigatorView, router, navigationConfig) {
|
||||
class Navigator extends React.Component {
|
||||
static router = router;
|
||||
static navigationOptions = null;
|
||||
static navigationOptions = navigationConfig.navigationOptions;
|
||||
|
||||
state = {
|
||||
descriptors: {},
|
||||
|
||||
@@ -566,7 +566,7 @@ export default (routeConfigs, stackConfig = {}) => {
|
||||
|
||||
getScreenOptions: createConfigGetter(
|
||||
routeConfigs,
|
||||
stackConfig.navigationOptions
|
||||
stackConfig.defaultNavigationOptions
|
||||
),
|
||||
};
|
||||
};
|
||||
|
||||
@@ -320,7 +320,7 @@ export default (routeConfigs, config = {}) => {
|
||||
|
||||
getScreenOptions: createConfigGetter(
|
||||
routeConfigs,
|
||||
config.navigationOptions
|
||||
config.defaultNavigationOptions
|
||||
),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user