【React Native】文件翻譯閱讀紀錄 - APIs - View Style Props
Facebook Open Source React Native |
View Style Props
Props
borderRightColor
backfaceVisibility
borderBottomColor
borderBottomEndRadius
borderBottomLeftRadius
borderBottomRightRadius
borderBottomStartRadius
borderBottomWidth
borderColor
borderEndColor
borderLeftColor
borderLeftWidth
borderRadius
backgroundColor
borderRightWidth
borderStartColor
borderStyle
borderTopColor
borderTopEndRadius
borderTopLeftRadius
borderTopRightRadius
borderTopStartRadius
borderTopWidth
borderWidth
opacity
elevation
參考
Props
borderRightColor
TYPE | REQUIRED |
---|---|
color | No |
backfaceVisibility
TYPE | REQUIRED |
---|---|
enum('visible', 'hidden') | No |
borderBottomColor
TYPE | REQUIRED |
---|---|
color | No |
borderBottomEndRadius
TYPE | REQUIRED |
---|---|
number | No |
borderBottomLeftRadius
TYPE | REQUIRED |
---|---|
number | No |
borderBottomRightRadius
TYPE | REQUIRED |
---|---|
number | No |
borderBottomStartRadius
TYPE | REQUIRED |
---|---|
number | No |
borderBottomWidth
TYPE | REQUIRED |
---|---|
number | No |
borderColor
TYPE | REQUIRED |
---|---|
color | No |
borderEndColor
TYPE | REQUIRED |
---|---|
color | No |
borderLeftColor
TYPE | REQUIRED |
---|---|
color | No |
borderLeftWidth
TYPE | REQUIRED |
---|---|
number | No |
borderRadius
TYPE | REQUIRED |
---|---|
number | No |
backgroundColor
TYPE | REQUIRED |
---|---|
color | No |
borderRightWidth
TYPE | REQUIRED |
---|---|
number | No |
borderStartColor
TYPE | REQUIRED |
---|---|
color | No |
borderStyle
TYPE | REQUIRED |
---|---|
enum('solid', 'dotted', 'dashed') | No |
borderTopColor
TYPE | REQUIRED |
---|---|
color | No |
borderTopEndRadius
TYPE | REQUIRED |
---|---|
number | No |
borderTopLeftRadius
TYPE | REQUIRED |
---|---|
number | No |
borderTopRightRadius
TYPE | REQUIRED |
---|---|
number | No |
borderTopStartRadius
TYPE | REQUIRED |
---|---|
number | No |
borderTopWidth
TYPE | REQUIRED |
---|---|
number | No |
borderWidth
TYPE | REQUIRED |
---|---|
number | No |
opacity
TYPE | REQUIRED |
---|---|
number | No |
elevation
(僅限Android)使用Android的基礎高程API設置視圖的高程。這會為項目添加陰影,並影響重疊視圖的z順序。僅在Android 5.0+上受支持,對早期版本沒有影響。
TYPE | REQUIRED | PLATFORM |
---|---|---|
number | No | Android |
0 意見