Skip to content

Commit

Permalink
stop wanring about using onWillFocus and onDidFocus.
Browse files Browse the repository at this point in the history
Reviewed By: chaceliang

Differential Revision: D2925643

fb-gh-sync-id: d12b774b5c43d5369e2c02832d80541b2534fba6
shipit-source-id: d12b774b5c43d5369e2c02832d80541b2534fba6
  • Loading branch information
Hedger Wang authored and facebook-github-bot-5 committed Feb 12, 2016
1 parent 8720d4b commit 5ca9245
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Libraries/CustomComponents/Navigator/Navigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit 5ca9245

@cpjolicoeur
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So is this no longer deprecated?

Please sign in to comment.