interface TextStyle {
    alignContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | "stretch";
    alignItems?: FlexAlignType;
    alignSelf?: "auto" | FlexAlignType;
    aspectRatio?: string | number;
    backfaceVisibility?: "visible" | "hidden";
    backgroundColor?: ColorValue;
    borderBlockColor?: ColorValue;
    borderBlockEndColor?: ColorValue;
    borderBlockStartColor?: ColorValue;
    borderBottomColor?: ColorValue;
    borderBottomEndRadius?: string | AnimatableNumericValue;
    borderBottomLeftRadius?: string | AnimatableNumericValue;
    borderBottomRightRadius?: string | AnimatableNumericValue;
    borderBottomStartRadius?: string | AnimatableNumericValue;
    borderBottomWidth?: number;
    borderColor?: ColorValue;
    borderCurve?: "circular" | "continuous";
    borderEndColor?: ColorValue;
    borderEndEndRadius?: string | AnimatableNumericValue;
    borderEndStartRadius?: string | AnimatableNumericValue;
    borderEndWidth?: number;
    borderLeftColor?: ColorValue;
    borderLeftWidth?: number;
    borderRadius?: string | AnimatableNumericValue;
    borderRightColor?: ColorValue;
    borderRightWidth?: number;
    borderStartColor?: ColorValue;
    borderStartEndRadius?: string | AnimatableNumericValue;
    borderStartStartRadius?: string | AnimatableNumericValue;
    borderStartWidth?: number;
    borderStyle?: "solid" | "dotted" | "dashed";
    borderTopColor?: ColorValue;
    borderTopEndRadius?: string | AnimatableNumericValue;
    borderTopLeftRadius?: string | AnimatableNumericValue;
    borderTopRightRadius?: string | AnimatableNumericValue;
    borderTopStartRadius?: string | AnimatableNumericValue;
    borderTopWidth?: number;
    borderWidth?: number;
    bottom?: DimensionValue;
    color?: ColorValue;
    columnGap?: string | number;
    cursor?: CursorValue;
    direction?: "inherit" | "ltr" | "rtl";
    display?: "none" | "flex";
    elevation?: number;
    end?: DimensionValue;
    flex?: number;
    flexBasis?: DimensionValue;
    flexDirection?: "row" | "column" | "row-reverse" | "column-reverse";
    flexGrow?: number;
    flexShrink?: number;
    flexWrap?: "wrap" | "nowrap" | "wrap-reverse";
    fontFamily?: string;
    fontSize?: number;
    fontStyle?: "normal" | "italic";
    fontVariant?: FontVariant[];
    fontWeight?: "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black";
    gap?: string | number;
    height?: DimensionValue;
    includeFontPadding?: boolean;
    justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly";
    left?: DimensionValue;
    letterSpacing?: number;
    lineHeight?: number;
    margin?: DimensionValue;
    marginBottom?: DimensionValue;
    marginEnd?: DimensionValue;
    marginHorizontal?: DimensionValue;
    marginLeft?: DimensionValue;
    marginRight?: DimensionValue;
    marginStart?: DimensionValue;
    marginTop?: DimensionValue;
    marginVertical?: DimensionValue;
    maxHeight?: DimensionValue;
    maxWidth?: DimensionValue;
    minHeight?: DimensionValue;
    minWidth?: DimensionValue;
    opacity?: AnimatableNumericValue;
    overflow?: "visible" | "hidden" | "scroll";
    padding?: DimensionValue;
    paddingBottom?: DimensionValue;
    paddingEnd?: DimensionValue;
    paddingHorizontal?: DimensionValue;
    paddingLeft?: DimensionValue;
    paddingRight?: DimensionValue;
    paddingStart?: DimensionValue;
    paddingTop?: DimensionValue;
    paddingVertical?: DimensionValue;
    pointerEvents?: "box-none" | "none" | "box-only" | "auto";
    position?: "absolute" | "relative" | "static";
    right?: DimensionValue;
    rotation?: AnimatableNumericValue;
    rowGap?: string | number;
    scaleX?: AnimatableNumericValue;
    scaleY?: AnimatableNumericValue;
    shadowColor?: ColorValue;
    shadowOffset?: Readonly<{
        height: number;
        width: number;
    }>;
    shadowOpacity?: AnimatableNumericValue;
    shadowRadius?: number;
    start?: DimensionValue;
    textAlign?: "center" | "auto" | "left" | "right" | "justify";
    textAlignVertical?: "center" | "auto" | "top" | "bottom";
    textDecorationColor?: ColorValue;
    textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through";
    textDecorationStyle?: "solid" | "dotted" | "dashed" | "double";
    textShadowColor?: ColorValue;
    textShadowOffset?: {
        height: number;
        width: number;
    };
    textShadowRadius?: number;
    textTransform?: "none" | "capitalize" | "uppercase" | "lowercase";
    top?: DimensionValue;
    transform?: string | ({
        perspective: AnimatableNumericValue;
    } & {
        matrix: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        rotate: AnimatableStringValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        rotateX: AnimatableStringValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        rotateY: AnimatableStringValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        rotateZ: AnimatableStringValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        scale: AnimatableNumericValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        scaleX: AnimatableNumericValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        scaleY: AnimatableNumericValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        translateX: AnimatableNumericValue | `${number}%`;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateY: undefined;
    } | {
        translateY: AnimatableNumericValue | `${number}%`;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
    } | {
        skewX: AnimatableStringValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        skewY: AnimatableStringValue;
    } & {
        matrix: undefined;
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        translateX: undefined;
        translateY: undefined;
    } | {
        matrix: AnimatableNumericValue[];
    } & {
        perspective: undefined;
        rotate: undefined;
        rotateX: undefined;
        rotateY: undefined;
        rotateZ: undefined;
        scale: undefined;
        scaleX: undefined;
        scaleY: undefined;
        skewX: undefined;
        skewY: undefined;
        translateX: undefined;
        translateY: undefined;
    })[];
    transformMatrix?: number[];
    transformOrigin?: string | (string | number)[];
    translateX?: AnimatableNumericValue;
    translateY?: AnimatableNumericValue;
    userSelect?: "text" | "none" | "auto" | "contain" | "all";
    verticalAlign?: "auto" | "top" | "bottom" | "middle";
    width?: DimensionValue;
    writingDirection?: "auto" | "ltr" | "rtl";
    zIndex?: number;
}

Hierarchy (view full)

Properties

alignContent? alignItems? alignSelf? aspectRatio? backfaceVisibility? backgroundColor? borderBlockColor? borderBlockEndColor? borderBlockStartColor? borderBottomColor? borderBottomEndRadius? borderBottomLeftRadius? borderBottomRightRadius? borderBottomStartRadius? borderBottomWidth? borderColor? borderCurve? borderEndColor? borderEndEndRadius? borderEndStartRadius? borderEndWidth? borderLeftColor? borderLeftWidth? borderRadius? borderRightColor? borderRightWidth? borderStartColor? borderStartEndRadius? borderStartStartRadius? borderStartWidth? borderStyle? borderTopColor? borderTopEndRadius? borderTopLeftRadius? borderTopRightRadius? borderTopStartRadius? borderTopWidth? borderWidth? bottom? color? columnGap? cursor? direction? display? elevation? end? flex? flexBasis? flexDirection? flexGrow? flexShrink? flexWrap? fontFamily? fontSize? fontStyle? fontVariant? fontWeight? gap? height? includeFontPadding? justifyContent? left? letterSpacing? lineHeight? margin? marginBottom? marginEnd? marginHorizontal? marginLeft? marginRight? marginStart? marginTop? marginVertical? maxHeight? maxWidth? minHeight? minWidth? opacity? overflow? padding? paddingBottom? paddingEnd? paddingHorizontal? paddingLeft? paddingRight? paddingStart? paddingTop? paddingVertical? pointerEvents? position? right? rotation? rowGap? scaleX? scaleY? shadowColor? shadowOffset? shadowOpacity? shadowRadius? start? textAlign? textAlignVertical? textDecorationColor? textDecorationLine? textDecorationStyle? textShadowColor? textShadowOffset? textShadowRadius? textTransform? top? transform? transformMatrix? transformOrigin? translateX? translateY? userSelect? verticalAlign? width? writingDirection? zIndex?

Properties

alignContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly" | "stretch"
alignItems?: FlexAlignType
alignSelf?: "auto" | FlexAlignType
aspectRatio?: string | number
backfaceVisibility?: "visible" | "hidden"
backgroundColor?: ColorValue
borderBlockColor?: ColorValue
borderBlockEndColor?: ColorValue
borderBlockStartColor?: ColorValue
borderBottomColor?: ColorValue
borderBottomEndRadius?: string | AnimatableNumericValue
borderBottomLeftRadius?: string | AnimatableNumericValue
borderBottomRightRadius?: string | AnimatableNumericValue
borderBottomStartRadius?: string | AnimatableNumericValue
borderBottomWidth?: number
borderColor?: ColorValue
borderCurve?: "circular" | "continuous"

On iOS 13+, it is possible to change the corner curve of borders.

Platform

ios

borderEndColor?: ColorValue
borderEndEndRadius?: string | AnimatableNumericValue
borderEndStartRadius?: string | AnimatableNumericValue
borderEndWidth?: number
borderLeftColor?: ColorValue
borderLeftWidth?: number
borderRadius?: string | AnimatableNumericValue
borderRightColor?: ColorValue
borderRightWidth?: number
borderStartColor?: ColorValue
borderStartEndRadius?: string | AnimatableNumericValue
borderStartStartRadius?: string | AnimatableNumericValue
borderStartWidth?: number
borderStyle?: "solid" | "dotted" | "dashed"
borderTopColor?: ColorValue
borderTopEndRadius?: string | AnimatableNumericValue
borderTopLeftRadius?: string | AnimatableNumericValue
borderTopRightRadius?: string | AnimatableNumericValue
borderTopStartRadius?: string | AnimatableNumericValue
borderTopWidth?: number
borderWidth?: number
color?: ColorValue
columnGap?: string | number
cursor?: CursorValue
direction?: "inherit" | "ltr" | "rtl"

Platform

ios

display?: "none" | "flex"
elevation?: number

Sets the elevation of a view, using Android's underlying elevation API. This adds a drop shadow to the item and affects z-order for overlapping views. Only supported on Android 5.0+, has no effect on earlier versions.

Platform

android

flex?: number
flexBasis?: DimensionValue
flexDirection?: "row" | "column" | "row-reverse" | "column-reverse"
flexGrow?: number
flexShrink?: number
flexWrap?: "wrap" | "nowrap" | "wrap-reverse"
fontFamily?: string
fontSize?: number
fontStyle?: "normal" | "italic"
fontVariant?: FontVariant[]
fontWeight?: "bold" | "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "700" | "800" | "900" | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | "ultralight" | "thin" | "light" | "medium" | "regular" | "semibold" | "condensedBold" | "condensed" | "heavy" | "black"

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.

gap?: string | number
includeFontPadding?: boolean
justifyContent?: "center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly"
letterSpacing?: number
lineHeight?: number
marginBottom?: DimensionValue
marginEnd?: DimensionValue
marginHorizontal?: DimensionValue
marginLeft?: DimensionValue
marginRight?: DimensionValue
marginStart?: DimensionValue
marginTop?: DimensionValue
marginVertical?: DimensionValue
maxHeight?: DimensionValue
maxWidth?: DimensionValue
minHeight?: DimensionValue
minWidth?: DimensionValue
overflow?: "visible" | "hidden" | "scroll"
padding?: DimensionValue
paddingBottom?: DimensionValue
paddingEnd?: DimensionValue
paddingHorizontal?: DimensionValue
paddingLeft?: DimensionValue
paddingRight?: DimensionValue
paddingStart?: DimensionValue
paddingTop?: DimensionValue
paddingVertical?: DimensionValue
pointerEvents?: "box-none" | "none" | "box-only" | "auto"

Controls whether the View can be the target of touch events.

position?: "absolute" | "relative" | "static"

Deprecated

Use rotate in transform prop instead.

rowGap?: string | number

Deprecated

Use scaleX in transform prop instead.

Deprecated

Use scaleY in transform prop instead.

shadowColor?: ColorValue
shadowOffset?: Readonly<{
    height: number;
    width: number;
}>

Type declaration

  • height: number
  • width: number
shadowOpacity?: AnimatableNumericValue
shadowRadius?: number
textAlign?: "center" | "auto" | "left" | "right" | "justify"
textAlignVertical?: "center" | "auto" | "top" | "bottom"
textDecorationColor?: ColorValue
textDecorationLine?: "none" | "underline" | "line-through" | "underline line-through"
textDecorationStyle?: "solid" | "dotted" | "dashed" | "double"
textShadowColor?: ColorValue
textShadowOffset?: {
    height: number;
    width: number;
}

Type declaration

  • height: number
  • width: number
textShadowRadius?: number
textTransform?: "none" | "capitalize" | "uppercase" | "lowercase"
transform?: string | ({
    perspective: AnimatableNumericValue;
} & {
    matrix: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    rotate: AnimatableStringValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    rotateX: AnimatableStringValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    rotateY: AnimatableStringValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    rotateZ: AnimatableStringValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    scale: AnimatableNumericValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    scaleX: AnimatableNumericValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    scaleY: AnimatableNumericValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    translateX: AnimatableNumericValue | `${number}%`;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateY: undefined;
} | {
    translateY: AnimatableNumericValue | `${number}%`;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
} | {
    skewX: AnimatableStringValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    skewY: AnimatableStringValue;
} & {
    matrix: undefined;
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    translateX: undefined;
    translateY: undefined;
} | {
    matrix: AnimatableNumericValue[];
} & {
    perspective: undefined;
    rotate: undefined;
    rotateX: undefined;
    rotateY: undefined;
    rotateZ: undefined;
    scale: undefined;
    scaleX: undefined;
    scaleY: undefined;
    skewX: undefined;
    skewY: undefined;
    translateX: undefined;
    translateY: undefined;
})[]
transformMatrix?: number[]

Deprecated

Use matrix in transform prop instead.

transformOrigin?: string | (string | number)[]

Deprecated

Use translateX in transform prop instead.

Deprecated

Use translateY in transform prop instead.

userSelect?: "text" | "none" | "auto" | "contain" | "all"
verticalAlign?: "auto" | "top" | "bottom" | "middle"
writingDirection?: "auto" | "ltr" | "rtl"
zIndex?: number