id | title | sidebar_label |
---|---|---|
options-stack |
Top Bar Options |
Top Bar |
const options = {
topBar: {
animate: true,
title: {},
subtitle: {},
backButton: {},
background: {},
},
};
Determines if TopBar is visible or not.
Type | Required | Platform |
---|---|---|
boolean | No | Both |
Determines if changing the TopBar visibility will be animated or not.
Type | Required | Platform |
---|---|---|
boolean | No | Both |
Determines if changing the left buttons will be animated.
Type | Required | Platform | Default |
---|---|---|---|
boolean | No | Both | False |
Determines if changing the right buttons will be animated.
Type | Required | Platform | Default |
---|---|---|---|
boolean | No | Both | False |
Controls the top bar title.
Type | Required | Platform |
---|---|---|
Title | No | Both |
Controls the top bar subtitle.
Type | Required | Platform |
---|---|---|
Subitle | No | Both |
Controls the top bar back button.
Type | Required | Platform |
---|---|---|
BackButton | No | Both |
Controls the top bar background.
Type | Required | Platform |
---|---|---|
Background | No | Both |
Controls the appearance settings when the scrollable content reaches the matching edge of the navigation bar.
Type | Required | Platform |
---|---|---|
Scroll Edge Background | No | iOS 13+ |
Control the TopBar blur style. Requires translucent: true
.
Type | Required | Platform |
---|---|---|
enum('default','black') | No | iOS |
Set TopBar height, in dp units, on Android only. For iOS use largeTitle
see Options.
Type | Required | Platform |
---|---|---|
number | No | Android |
Change the topBar border color.
Type | Required | Platform |
---|---|---|
Color | No | Both |
Set the border height of the navbar in dp.
Type | Required | Platform |
---|---|---|
number | No | Android |
Controls if child should be drawn behind the TopBar or below it.
Type | Required | Platform |
---|---|---|
boolean | No | Both |
Set the elevation of the TopBar in dp. This option changes how the shadow under the TopBar looks. Setting this value to 0 will remove the shadow completely.
Type | Required | Platform |
---|---|---|
number | No | Android |
Hide the TopBar when a scrolling layout is scrolled.
Type | Required | Platform |
---|---|---|
boolean | No | Both |
:::warning Deprecation warning This option is currently deprecated and will be removed in a future release. Please use the OptionsSearchBar option instead. :::
Indicates whether the navigation bar should be hidden when searching. True by default.
Type | Required | Platform |
---|---|---|
boolean | No | iOS 11+ |
An array of buttons to be displayed at the right-side of the TopBar. Button layout is from left to right. See the Buttons section for more details.
:::info Android support Android currently only supports a single left button and does not support custom left Buttons. :::
Type | Required | Platform |
---|---|---|
[Button] | No | Both |
Default color for left buttons.
Type | Required | Platform |
---|---|---|
Color | No | Both |
Disables border at the bottom of the TopBar. :::important For disabling the border completely, you also need to disable scrollEdgeAppearance.noBorder :::
Type | Required | Platform |
---|---|---|
boolean | No | iOS |
An array of buttons to be displayed at the right side of the TopBar. Button layout is from right to left. See the Buttons section for more details.
Type | Required | Platform |
---|---|---|
[Button] | No | Both |
Default color for the right button.
Type | Required | Platform |
---|---|---|
Color | No | Both |
Controls the SearchBar.
Type | Required | Platform |
---|---|---|
OptionsSearchBar | No | iOS 11+ |
:::warning Deprecation warning This option is currently deprecated and will be removed in a future release. Please use the OptionsSearchBar option instead. :::
searchBarHiddenWhenScrolling
Hides the UISearchBar when scrolling.
Type | Required | Platform |
---|---|---|
boolean | No | iOS 11+ |
:::warning Deprecation warning This option is currently deprecated and will be removed in a future release. Please use the OptionsSearchBar option instead. :::
The placeholder value in the UISearchBar.
Type | Required | Platform |
---|---|---|
string | No | iOS 11+ |
:::warning Deprecation warning This option is currently deprecated and will be removed in a future release. Please use the OptionsSearchBar option instead. :::
The background color of the UISearchBar's TextField.
Type | Required | Platform |
---|---|---|
Color | No | iOS 13+ |
:::warning Deprecation warning This option is currently deprecated and will be removed in a future release. Please use the OptionsSearchBar option instead. :::
The tint color of the UISearchBar. Affects text selection color, as well as "Cancel" button color.
Type | Required | Platform |
---|---|---|
Color | No | iOS 13+ |