Obooman / react-native-scene-life-circle-enhance

πŸ– Life circle enhancement for react-native Navigator element

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

About

πŸ– Life circle enhancement for react-native Navigator element


Languages

Language:JavaScript 100.0%