mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Prop routeMapper of Navigator.NavigationBar is required
Summary: The component will crash if the prop is not provided. This helps with a better error message in the console output. Closes https://github.com/facebook/react-native/pull/2894 Reviewed By: @svcscm Differential Revision: D2461752 Pulled By: @ericvicenti
This commit is contained in:
committed by
facebook-github-bot-6
parent
972ae4c186
commit
9486642322
@@ -52,7 +52,7 @@ var NavigatorNavigationBar = React.createClass({
|
||||
Title: React.PropTypes.func.isRequired,
|
||||
LeftButton: React.PropTypes.func.isRequired,
|
||||
RightButton: React.PropTypes.func.isRequired,
|
||||
}),
|
||||
}).isRequired,
|
||||
navState: React.PropTypes.shape({
|
||||
routeStack: React.PropTypes.arrayOf(React.PropTypes.object),
|
||||
presentedIndex: React.PropTypes.number,
|
||||
|
||||
Reference in New Issue
Block a user