mirror of
https://github.com/status-im/react-native.git
synced 2025-01-13 11:05:21 +00: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:
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user