Interface: TextWidgetStyle
Hierarchy
-
↳
TextWidgetStyle
Properties
color
• Optional
color: `#${string}` | `rgba(${number}, ${number}, ${number}, ${number})`
fontSize
• Optional
fontSize: number
fontFamily
• Optional
fontFamily: string
fontStyle
• Optional
fontStyle: "normal"
| "italic"
fontWeight
• Optional
fontWeight: "bold"
| "normal"
| "100"
| "200"
| "300"
| "400"
| "500"
| "600"
| "700"
| "800"
| "900"
Specifies font weight. The values 'normal' and 'bold' are supported for most fonts. Not all fonts have a variant for each of the numeric values, in that case the closest one is chosen.
adjustsFontSizeToFit
• Optional
adjustsFontSizeToFit: boolean
textAlign
• Optional
textAlign: "center"
| "left"
| "right"
letterSpacing
• Optional
letterSpacing: number
textShadowColor
• Optional
textShadowColor: `#${string}` | `rgba(${number}, ${number}, ${number}, ${number})`
textShadowRadius
• Optional
textShadowRadius: number
textShadowOffset
• Optional
textShadowOffset: Object
Type declaration
Name | Type |
---|---|
height | number |
width | number |
margin
• Optional
margin: number
Inherited from
marginHorizontal
• Optional
marginHorizontal: number
Inherited from
CommonStyleProps.marginHorizontal
marginVertical
• Optional
marginVertical: number
Inherited from
CommonStyleProps.marginVertical
marginTop
• Optional
marginTop: number
Inherited from
marginBottom
• Optional
marginBottom: number
Inherited from
marginLeft
• Optional
marginLeft: number
Inherited from
marginRight
• Optional
marginRight: number
Inherited from
padding
• Optional
padding: number
Inherited from
paddingHorizontal
• Optional
paddingHorizontal: number
Inherited from
CommonStyleProps.paddingHorizontal
paddingVertical
• Optional
paddingVertical: number
Inherited from
CommonStyleProps.paddingVertical
paddingTop
• Optional
paddingTop: number
Inherited from
paddingBottom
• Optional
paddingBottom: number
Inherited from
CommonStyleProps.paddingBottom
paddingLeft
• Optional
paddingLeft: number
Inherited from
paddingRight
• Optional
paddingRight: number
Inherited from
height
• Optional
height: number
| "wrap_content"
| "match_parent"
Inherited from
width
• Optional
width: number
| "wrap_content"
| "match_parent"
Inherited from
backgroundColor
• Optional
backgroundColor: `#${string}` | `rgba(${number}, ${number}, ${number}, ${number})`
Inherited from
CommonStyleProps.backgroundColor
backgroundGradient
• Optional
backgroundGradient: Object
Type declaration
Name | Type |
---|---|
from | ColorProp |
to | ColorProp |
orientation | "TOP_BOTTOM" | "TR_BL" | "RIGHT_LEFT" | "BR_TL" | "BOTTOM_TOP" | "BL_TR" | "LEFT_RIGHT" | "TL_BR" |
Inherited from
CommonStyleProps.backgroundGradient
borderWidth
• Optional
borderWidth: number
Inherited from
borderTopWidth
• Optional
borderTopWidth: number
Inherited from
CommonStyleProps.borderTopWidth
borderBottomWidth
• Optional
borderBottomWidth: number
Inherited from
CommonStyleProps.borderBottomWidth
borderLeftWidth
• Optional
borderLeftWidth: number
Inherited from
CommonStyleProps.borderLeftWidth
borderRightWidth
• Optional
borderRightWidth: number
Inherited from
CommonStyleProps.borderRightWidth
borderColor
• Optional
borderColor: `#${string}` | `rgba(${number}, ${number}, ${number}, ${number})`
Inherited from
borderTopColor
• Optional
borderTopColor: `#${string}` | `rgba(${number}, ${number}, ${number}, ${number})`
Inherited from
CommonStyleProps.borderTopColor
borderBottomColor
• Optional
borderBottomColor: `#${string}` | `rgba(${number}, ${number}, ${number}, ${number})`
Inherited from
CommonStyleProps.borderBottomColor
borderLeftColor
• Optional
borderLeftColor: `#${string}` | `rgba(${number}, ${number}, ${number}, ${number})`
Inherited from
CommonStyleProps.borderLeftColor
borderRightColor
• Optional
borderRightColor: `#${string}` | `rgba(${number}, ${number}, ${number}, ${number})`
Inherited from
CommonStyleProps.borderRightColor
borderRadius
• Optional
borderRadius: number
Inherited from
borderTopLeftRadius
• Optional
borderTopLeftRadius: number
Inherited from
CommonStyleProps.borderTopLeftRadius
borderTopRightRadius
• Optional
borderTopRightRadius: number
Inherited from
CommonStyleProps.borderTopRightRadius
borderBottomLeftRadius
• Optional
borderBottomLeftRadius: number
Inherited from
CommonStyleProps.borderBottomLeftRadius
borderBottomRightRadius
• Optional
borderBottomRightRadius: number
Inherited from
CommonStyleProps.borderBottomRightRadius
borderStyle
• Optional
borderStyle: "solid"
| "dotted"
| "dashed"
Inherited from
rotation
• Optional
rotation: number