stop wanring about using `onWillFocus` and `onDidFocus`.
Reviewed By: chaceliang Differential Revision: D2925643 fb-gh-sync-id: d12b774b5c43d5369e2c02832d80541b2534fba6 shipit-source-id: d12b774b5c43d5369e2c02832d80541b2534fba6
This commit is contained in:
parent
8720d4bc76
commit
5ca9245067
|
@ -227,19 +227,13 @@ var Navigator = React.createClass({
|
||||||
/**
|
/**
|
||||||
* Will emit the target route upon mounting and before each nav transition
|
* Will emit the target route upon mounting and before each nav transition
|
||||||
*/
|
*/
|
||||||
onWillFocus: deprecatedPropType(
|
onWillFocus: PropTypes.func,
|
||||||
PropTypes.func,
|
|
||||||
"Use `navigationContext.addListener('willfocus', callback)` instead."
|
|
||||||
),
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Will be called with the new route of each scene after the transition is
|
* Will be called with the new route of each scene after the transition is
|
||||||
* complete or after the initial mounting
|
* complete or after the initial mounting
|
||||||
*/
|
*/
|
||||||
onDidFocus: deprecatedPropType(
|
onDidFocus: PropTypes.func,
|
||||||
PropTypes.func,
|
|
||||||
"Use `navigationContext.addListener('didfocus', callback)` instead."
|
|
||||||
),
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Optionally provide a navigation bar that persists across scene
|
* Optionally provide a navigation bar that persists across scene
|
||||||
|
|
Loading…
Reference in New Issue