跳到主要内容
新架构实战课 实操 + 基建 + 原理全维度包揽,抢先掌握 React Native 新架构精髓 立即查看 >Version: 0.74

矩形区域对象

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.

示例

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

属性与值

bottom

TypeRequired
number, null, undefinedNo

left

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

top

TypeRequired
number, null, undefinedNo

被下列组件引用