Returns the navigation prop from a parent navigator based on the ID.
If an ID is provided, the navigation prop from the parent navigator with matching ID (including current) will be returned.
If no ID is provided, the navigation prop from the immediate parent navigator will be returned.
Returns the navigation prop from a parent navigator based on the ID. If an ID is provided, the navigation prop from the parent navigator with matching ID (including current) will be returned. If no ID is provided, the navigation prop from the immediate parent navigator will be returned.