NavigationButton
<navigationButton> is a UI component that provides an abstraction for the Android navigation button and the iOS back button.
Extends <actionItem>.
See also:
/** @jsx createElement */
<actionBar title="My App">
<navigationButton
text="Go back"
android={{
systemIcon: "ic_menu_back"
}}
onTap={goBack}
/>
</actionBar>
Props
| Name | Type | Description |
|---|---|---|
text | string | (iOS-only) Sets the text of the button. |
android.systemIcon | string | (Android-only) The icon to be shown in the button. You can specify any system icon whose name begins with the ic_ prefix. For a complete list of the available icons, see the R.drawable Android class. |
onTap | (args:EventData) => void | Emitted when the NavigationButton is tapped. |
Native component
| Android | iOS |
|---|---|
android.widget.Toolbar | UINavigationItem |