View
React Native for web provides access to browser-only style properties. The following styles apply to any primitive that extends `ViewStylePropTypes` like Text, Image, TextInput, ScrollView, etc...
Last updated
Was this helpful?
React Native for web provides access to browser-only style properties. The following styles apply to any primitive that extends `ViewStylePropTypes` like Text, Image, TextInput, ScrollView, etc...
Last updated
Was this helpful?
The backdropFilter
CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything behind the element, to see the effect you must make the element or its background at least partially transparent.
string
The backgroundAttachment
CSS property sets whether a background image's position is fixed within the viewport, or scrolls with its containing block.
string
The backgroundBlendMode
CSS property sets how an element's background images should blend with each other and with the element's background color.
string
The backgroundClip
CSS property sets whether an element's background extends underneath its border box, padding box, or content box.
string
The backgroundImage
CSS property sets one or more background images on an element.
string
The backgroundOrigin
CSS property sets the background's origin: from the border start, inside the border, or inside the padding.
enum('border-box', 'content-box', 'padding-box')
The backgroundPosition
CSS property sets the initial position for each background image. The position is relative to the position layer set by backgroundOrigin
.
string
The backgroundRepeat
CSS property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.
string
The backgroundSize
CSS property sets the size of the element's background image. The image can be left to its natural size, stretched, or constrained to fit the available space.
string
The boxShadow
CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radii, and color.
string
The clip
CSS property defines what portion of an element is visible. The clip
property applies only to absolutely positioned elements, that is elements with position: "absolute"
or position: "fixed"
.
string
The filter
CSS property applies graphical effects like blur or color shift to an element. Filters are commonly used to adjust the rendering of images, backgrounds, and borders.
string
An outline is a line that is drawn around elements (outside the borders) to make the element "stand out".
The outlineColor
property specifies the color of an outline.
Note: Always declare the
outlineStyle
property before theoutlineColor
property. An element must have an outline before you change the color of it.
ColorPropType
The outlineOffset
CSS property sets the amount of space between an outline and the edge or border of an element.
enum(string, number)
An outline is a line that is drawn around elements (outside the borders) to make the element "stand out".
string
An outline is a line that is drawn around elements (outside the borders) to make the element "stand out".
Note: Always declare the
outlineStyle
property before theoutlineWidth
property. An element must have an outline before you change the width of it.
enum(string, number)
The overscrollBehavior
CSS property sets what a browser does when reaching the boundary of a scrolling area. It's a shorthand for overscrollBehaviorX
and overscrollBehaviorY
.
enum('auto', 'contain', 'none')
The overscrollBehaviorX
CSS property sets the browser's behavior when the horizontal boundary of a scrolling area is reached.
enum('auto', 'contain', 'none')
The overscrollBehaviorY
CSS property sets the browser's behavior when the vertical boundary of a scrolling area is reached.
enum('auto', 'contain', 'none')
The scrollbarWidth
property allows the author to set the maximum thickness of an element’s scrollbars when they are shown.
enum('auto', 'thin', 'none')
The scrollSnapAlign
property specifies the box’s snap position as an alignment of its snap area (as the alignment subject) within its snap container’s snapport (as the alignment container). The two values specify the snapping alignment in the block axis and inline axis, respectively. If only one value is specified, the second value defaults to the same value.
string
The scrollSnapType
CSS property sets how strictly snap points are enforced on the scroll container in case there is one.
string
The maskImage
CSS property sets the image that is used as mask layer for an element.
string
The WebkitOverflowScrolling
CSS property controls whether or not touch devices use momentum-based scrolling for a given element.
enum('auto', 'touch')