options-migration
Common Options#
navBarTextColor#
Title text color
navBarTextFontSize#
Title font size
navBarTextFontFamily#
Title font
navBarBackgroundColor#
TopBar background color
navBarCustomView#
Use a react view as the TopBar's background or use a React view instead of the textual title.
navBarClipToBounds#
Restrict the navbar background color to the navbar, and do not flow behind the status bar.
navBarComponentAlignment#
Align the React view used as the title
navBarCustomViewInitialProps#
Initial props passed to the React component
navBarButtonColor#
TopBar button color
navBarHidden#
TopBar visibility. When setting visible: false, you probably want to set drawBehind: true as well. Use animate: false to toggle visibility without animation.
navBarTransparent#
Transparent TopBar. Set drawBehind: true to draw the screen behind the transparent TopBar.
drawUnderNavBar#
Draw the screen behind the TopBar, Useful when the TopBar is toggled or transparent
drawUnderTabBar#
Draw the screen behind the BottomTabs, Useful when toggling BottomTabs or when the BottomTabs are translucent.
tabBarHidden#
BottomTabs 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.
statusBarHidden#
StatusBar visibility. For android, also set drawBehind: true.
statusBarTextColorScheme#
Theme of text and icons displayed in the StatusBar
navBarSubtitleColor#
Subtitle color
navBarSubtitleFontFamily#
Subtitle font
navBarSubtitleFontSize#
Subtitle font size
screenBackgroundColor#
Screen color, visible before the actual React view is rendered
orientation#
disabledButtonColor#
Button color when enabled: false is used
navBarButtonFontSize#
Button font size
navBarLeftButtonFontSize#
Left button font size
navBarLeftButtonColor#
Left button color
navBarLeftButtonFontWeight#
Left button font weight
navBarRightButtonFontSize#
Right button font size
navBarRightButtonColor#
Right button color
navBarRightButtonFontWeight#
Right button font weight
modalPresentationStyle#
Controls the behavior of screens displayed modally.
Options supported on iOS#
overCurrentContext- 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 Android#
overCurrentContext- Content is displayed over the previous screen. Useful for transparent modalsnone- Previous content is detached when the Modal's show animation ends
navBarButtonFontFamily#
Button font family
iOS only#
navBarHideOnScroll#
Hide TopBar when list is scrolled
navBarTranslucent#
Translucent TopBar, Setting drawBehind: true is required for this property to work as expected.
navBarNoBorder#
Remove TopBar border (hair line)
navBarBlur#
Blur 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
screenBackgroundImageName#
name of image in Images.xcassets
statusBarHideWithNavBar#
Hide the StatusBar if the TopBar is also hidden
statusBarBlur#
Blur the area behind the StatusBar
statusBarAnimate#
Animate between style changes of the StatusBar
disabledBackGesture#
Disable the back (swipe) gesture used to pop screens
largeTitle#
Use iOS 11 large title
Android Options#
topBarElevationShadowEnabled#
TopBar elevation in dp. Set this value to 0 to disable the TopBar's shadow.
navBarTitleTextCentered#
Title alignment
statusBarColor#
StatusBar color
navigationBarColor#
NavigationBar color
drawUnderStatusBar#
Draw content behind the StatusBar
navBarHeight#
TopBar height in dp
navBarTopPadding#
Content top margin
topTabsHeight#
TopTabs height
topBarBorderColor#
TopBar border color
topBarBorderWidth#
TopBar border height
Unsupported options#
- disabledSimultaneousGesture
- statusBarTextColorSchemeSingleScreen
- navBarButtonFontWeight
- topBarShadowColor
- topBarShadowOpacity
- topBarShadowOffset
- topBarShadowRadius
- preferredContentSize
- navBarSubTitleTextCentered
- collapsingToolBarImage
- collapsingToolBarCollapsedColor
- navBarTextFontBold