Skip to content

Latest commit

History

History
18 lines (13 loc) 路 801 Bytes

File metadata and controls

18 lines (13 loc) 路 801 Bytes

Life circle enhancement for react-native Navigator element

Why

The react-native official document only offer 'didfocus' and 'willfocus' event for us to get things related scene life circle done. with this mixin, you have the power to handle tasks with more event hooks.

  • onEnterance - Fired at "former to current"
  • onBackIn - Fired at "latter to current"
  • onWillFocus - Fired at "other to current",two cases above covered.
  • onDidFocus - Fired at current scene active(after animation).
  • onBackwardBlur - Fired at "current will jump to latter"
  • onForwardBlur - Fired at "current will jump to former"
  • onWillBlur - Fired at "current will blur",two cases above covered.
  • onDidBlur - Fired at "current to others" animation done.Before this.componentDidUnmounte

馃嵒 Cheers!