Check if dispatching back action will be handled by navigation.
Note that this method doesn't re-render screen when the result changes. So don't use it in render.
Returns boolean
dispatch:function
dispatch(action): void
Dispatch an action or an update function to the router.
The update function will receive the current state,
Returns the navigation helpers from a parent navigator based on the ID.
If an ID is provided, the navigation helper from the parent navigator with matching ID (including current) will be returned.
If no ID is provided, the navigation helper from the immediate parent navigator will be returned.
Check if the screen is focused. The method returns true if focused, false otherwise.
Note that this method doesn't re-render screen when the focus changes. So don't use it in render.
To get notified of focus changes, use addListener('focus', cb) and addListener('blur', cb).
To conditionally render content based on focus state, use the useIsFocused hook.
Check if dispatching back action will be handled by navigation. Note that this method doesn't re-render screen when the result changes. So don't use it in
render
.