Rect Object Type
Important: The Vega SDK supports many of the React Native version 0.72 components and APIs. You can use the supported components and APIs in the same manner as an ordinary React Native app. This page lists a specific React Native feature supported by the Vega SDK and contains React Native v72 documentation from the reactnative.dev website created by Meta and other contributors and licensed under the Attribution 4.0 International License. For more information about React Native v72, see the React Native documentation, version 0.72. For the most current feature information, see the Release Notes.
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
{
bottom: 20,
left: null,
right: undefined,
top: 50
}
Keys and values
bottom
Type | Required |
---|---|
number, null , undefined |
No |
left
Type | Required |
---|---|
number, null , undefined |
No |
right
Type | Required |
---|---|
number, null , undefined |
No |
top
Type | Required |
---|---|
number, null , undefined |
No |
Used by
Last updated: Sep 30, 2025