options-migration
#
Common Options#
navBarTextColorTitle text color
#
navBarTextFontSizeTitle font size
#
navBarTextFontFamilyTitle font
#
navBarBackgroundColorTopBar background color
#
navBarCustomViewUse a react view as the TopBar's background or use a React view instead of the textual title.
#
navBarClipToBoundsRestrict the navbar background color to the navbar, and do not flow behind the status bar.
#
navBarComponentAlignmentAlign the React view used as the title
#
navBarCustomViewInitialPropsInitial props passed to the React component
#
navBarButtonColorTopBar button color
#
navBarHiddenTopBar visibility. When setting visible: false
, you probably want to set drawBehind: true
as well. Use animate: false
to toggle visibility without animation.
#
navBarTransparentTransparent TopBar. Set drawBehind: true
to draw the screen behind the transparent TopBar.
#
drawUnderNavBarDraw the screen behind the TopBar, Useful when the TopBar is toggled or transparent
#
drawUnderTabBarDraw the screen behind the BottomTabs, Useful when toggling BottomTabs or when the BottomTabs are translucent.
#
tabBarHiddenBottomTabs visibility.
The BottomTab's visibility can be toggled only on Android using mergeOptions
:
On iOS, BottomTab visibility can be changed only when pushing screens. This means that if you'd like to hide BottomTabs when pushing a screen, You'll need to set the property to false
in the options passed to the push
command or via the static options(passProps) {}
api.
#
statusBarHiddenStatusBar visibility. For android, also set drawBehind: true
.
#
statusBarTextColorSchemeTheme of text and icons displayed in the StatusBar
#
navBarSubtitleColorSubtitle color
#
navBarSubtitleFontFamilySubtitle font
#
navBarSubtitleFontSizeSubtitle font size
#
screenBackgroundColorScreen color, visible before the actual React view is rendered
#
orientation#
disabledButtonColorButton color when enabled: false
is used
#
navBarButtonFontSizeButton font size
#
navBarLeftButtonFontSizeLeft button font size
#
navBarLeftButtonColorLeft button color
#
navBarLeftButtonFontWeightLeft button font weight
#
navBarRightButtonFontSizeRight button font size
#
navBarRightButtonColorRight button color
#
navBarRightButtonFontWeightRight button font weight
#
modalPresentationStyleControls the behavior of screens displayed modally.
#
Options supported on iOSoverCurrentContext
- Content is displayed over the previous screen. Useful for transparent modalsformSheet
- Content is centered in the screenpageSheet
-Content partially covers the underlying contentoverFullScreen
- Content covers the screen, without detaching previous content.fullScreen
- Content covers the screen, previous content is detached.popover
- Content is displayed in a popover view.
More information on the different styles for iOS can be found on https://developer.apple.com/documentation/uikit/uimodalpresentationstyle
#
Options supported on AndroidoverCurrentContext
- Content is displayed over the previous screen. Useful for transparent modalsnone
- Previous content is detached when the Modal's show animation ends
#
navBarButtonFontFamilyButton font family
#
iOS only#
navBarHideOnScrollHide TopBar when list is scrolled
#
navBarTranslucentTranslucent TopBar, Setting drawBehind: true
is required for this property to work as expected.
#
navBarNoBorderRemove TopBar border (hair line)
#
navBarBlurBlur the area behind the TopBar, Setting drawBehind: true
and topBar background transparent: true
is required for this property to work as expected.
#
rootBackgroundImageName- iOS: name of image in Images.xcassets
- Android: name of drawable
#
screenBackgroundImageNamename of image in Images.xcassets
#
statusBarHideWithNavBarHide the StatusBar if the TopBar is also hidden
#
statusBarBlurBlur the area behind the StatusBar
#
disabledBackGestureDisable the back (swipe) gesture used to pop screens
#
largeTitleUse iOS 11 large title
#
Android Options#
topBarElevationShadowEnabledTopBar elevation in dp. Set this value to 0
to disable the TopBar's shadow.
#
navBarTitleTextCenteredTitle alignment
#
statusBarColorStatusBar color
#
navigationBarColorNavigationBar color
#
drawUnderStatusBarDraw content behind the StatusBar
#
navBarHeightTopBar height in dp
#
navBarTopPaddingContent top margin
#
topTabsHeightTopTabs height
#
topBarBorderColorTopBar border color
#
topBarBorderWidthTopBar border height
#
Unsupported options- disabledSimultaneousGesture
- statusBarTextColorSchemeSingleScreen
- navBarButtonFontWeight
- topBarShadowColor
- topBarShadowOpacity
- topBarShadowOffset
- topBarShadowRadius
- preferredContentSize
- navBarSubTitleTextCentered
- collapsingToolBarImage
- collapsingToolBarCollapsedColor
- navBarTextFontBold