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:
Jan Kassens 2015-09-22 14:41:01 -07:00 committed by facebook-github-bot-6
parent 972ae4c186
commit 9486642322
1 changed files with 1 additions and 1 deletions

View File

@ -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,