Skip to main content
Version: Next

Component

{
name: "MyRegisteredComponent";
}

name#

TypeRequiredDescription
stringYesKey used when registering the component with Navigation.registerComponent.

id#

TypeRequiredDescription
stringNoUnique id used to interact with the view via the Navigation api, usually Navigation.mergeOptions which accepts the componentId as it's first argument.

options#

TypeRequiredDescription
OptionsNodynamic options for the component

alignment#

TypeRequiredDescription
enum('center', 'fill')NoThis option is relevant only to title components. fill will make the component stretch and consume all available space in the TopBar while center will center it in the middle of the TopBar. center is the default option in iOS while fill is the default for Android.

waitForRender#

TypeRequiredDescription
booleanNoWait for this component to fully render before showing the screen.

This option is useful for ensuring that both a child screen pushed into the stack and all of the TopBar components (title, background and buttons) are displayed to the user at the same time.

To enable this option, waitForRender in the relevant screen animation option needs to be enabled as well.

caution

This option might introduce delays when pushing screens and should be used with caution.

passProps#

TypeRequiredDescription
objectNoA JavaScript object with props accessible inside the component using this.props.