Skip to content

Files

Latest commit

 

History

History
58 lines (39 loc) · 1.34 KB

options-background.mdx

File metadata and controls

58 lines (39 loc) · 1.34 KB
id title sidebar_label
options-background
Background Options
Background

Controls the top bar background styling.

const options = {
  topBar: {
    background: {}
  }
};

color

Set the background color. Ignored if a component is specified.

Type Required Platform
Color No Both

component

Set a react component as the background. Useful when you need to show a gradient as background, for instance.

On Android, setting an id to the Component will prevent the component from being recreated each time it's used by a screen. The component will be created once and whenever possible it will be reused.

Type Required Platform
Component No Both

clipToBounds

Clip the top bar background to bounds if set to true.

Type Required Platform
boolean No iOS

translucent

Allows the NavBar to be translucent (blurred).

Type Required Platform
boolean No iOS

blur

Enable background blur.

Type Required Platform
boolean No iOS