Documentation

type StyleOverrides

A type that defines style properties for UI elements.

type StyleOverrides = {
width?: string | number;
height?: string | number;
minWidth?: string | number;
maxWidth?: string | number;
minHeight?: string | number;
maxHeight?: string | number;
flexGrow?: number;
flexShrink?: number;
padding?: StyleOverrides.Offsets;
margin?: StyleOverrides.Offsets;
opacity?: number;
textDirection?: "rtl" | "ltr";
textAlign?: string;
fontFamily?: string;
fontSize?: string | number;
fontWeight?: string | number;
letterSpacing?: string | number;
tabularNums?: boolean;
lineHeight?: string | number;
lineBreakMode?:
| "normal"
| "nowrap"
| "pre"
| "pre-wrap"
| "pre-line"
| "ellipsis"
| "clip"
| "";
bold?: boolean;
italic?: boolean;
uppercase?: boolean;
smallCaps?: boolean;
underline?: boolean;
strikeThrough?: boolean;
userTextSelect?: boolean;
background?: UIColor.BackgroundType;
textColor?: UIColor;
borderColor?:
| UIColor
| {
top?: UIColor;
bottom?: UIColor;
left?: UIColor;
right?: UIColor;
start?: UIColor;
end?: UIColor;
};
borderStyle?: string;
borderWidth?: StyleOverrides.Offsets;
borderRadius?:
| string
| number
| {
topLeft?: string | number;
topRight?: string | number;
bottomLeft?: string | number;
bottomRight?: string | number;
topStart?: string | number;
bottomStart?: string | number;
topEnd?: string | number;
bottomEnd?: string | number;
};
dropShadow?: number;
cursor?: string;
css?: Partial<CSSStyleDeclaration>;
};

Notes

Type members

Instance members