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:
parent
972ae4c186
commit
9486642322
|
@ -52,7 +52,7 @@ var NavigatorNavigationBar = React.createClass({
|
||||||
Title: React.PropTypes.func.isRequired,
|
Title: React.PropTypes.func.isRequired,
|
||||||
LeftButton: React.PropTypes.func.isRequired,
|
LeftButton: React.PropTypes.func.isRequired,
|
||||||
RightButton: React.PropTypes.func.isRequired,
|
RightButton: React.PropTypes.func.isRequired,
|
||||||
}),
|
}).isRequired,
|
||||||
navState: React.PropTypes.shape({
|
navState: React.PropTypes.shape({
|
||||||
routeStack: React.PropTypes.arrayOf(React.PropTypes.object),
|
routeStack: React.PropTypes.arrayOf(React.PropTypes.object),
|
||||||
presentedIndex: React.PropTypes.number,
|
presentedIndex: React.PropTypes.number,
|
||||||
|
|
Loading…
Reference in New Issue