Skip to main content

Function: CloseIconOption()

CloseIconOption(quitToScreen?, quitBackToRoot?): (__namedParameters) => object

Defined in: lib/navigation/Navigator-options.tsx:39

Creates navigation options to show a close (X) icon in the header. The icon can navigate to a specific screen, back to root, or just go back.

Parameters

quitToScreen?

string

Optional screen name to navigate to when closing

quitBackToRoot?

boolean

Whether to navigate back to root when closing

Returns

Navigation options with close icon configuration

(__namedParameters): object

Parameters

__namedParameters

any

Returns

object

headerBackVisible

headerBackVisible: boolean = false

headerRight()

headerRight: () => Element

Returns

Element