You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`NavigationEvents` is a React component providing a declarative API to subscribe to navigation events. It will subscribe to navigation events on mount, and unsubscribe on unmount.
8
+
9
+
### Component props
10
+
11
+
*`navigation` - navigation props (optional, defaults to reading from React context)
12
+
*`onWillFocus` - event listener
13
+
*`onDidFocus` - event listener
14
+
*`onWillBlur` - event listener
15
+
*`onDidBlur`: event listener
16
+
17
+
The event listener is the same as the imperative [`navigation.addListener(...)`](navigation-prop.html#addlistener-subscribe-to-updates-to-navigation-lifecycle) API.
0 commit comments