Skip to main content
This is documentation for React Native 0.78, which is no longer in hardworking development.
For up-to-date documentation, see the latest version (0.79).
Version: 0.78

Rect Object Type

Rect accepts numeric pixel values to describe how far to extend a rectangular area. These values are added to the original area's size to expand it.

Example

js
{
bottom: 20,
left: null,
right: undefined,
top: 50
}

Keys and values

bottom

TypeRequired
number, null, undefinedNo

left

TypeRequired
number, null, undefinedNo
TypeRequired
number, null, undefinedNo

top

TypeRequired
number, null, undefinedNo

Used by