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:
Hedger Wang 2016-02-11 22:27:08 -08:00 committed by facebook-github-bot-5
parent 8720d4bc76
commit 5ca9245067
1 changed files with 2 additions and 8 deletions

View File

@ -227,19 +227,13 @@ var Navigator = React.createClass({
/**
* Will emit the target route upon mounting and before each nav transition
*/
onWillFocus: deprecatedPropType(
PropTypes.func,
"Use `navigationContext.addListener('willfocus', callback)` instead."
),
onWillFocus: PropTypes.func,
/**
* Will be called with the new route of each scene after the transition is
* complete or after the initial mounting
*/
onDidFocus: deprecatedPropType(
PropTypes.func,
"Use `navigationContext.addListener('didfocus', callback)` instead."
),
onDidFocus: PropTypes.func,
/**
* Optionally provide a navigation bar that persists across scene