Pilates
    Preparing search index...

    Interface TextNode

    Visual attributes for borders / text.

    interface TextNode {
        alignContent?: Align;
        alignItems?: Align;
        alignSelf?: Align;
        aspectRatio?: number;
        bgColor?: Color;
        bold?: boolean;
        color?: Color;
        dim?: boolean;
        display?: Display;
        flex?: number;
        flexBasis?: number | "auto";
        flexDirection?: FlexDirection;
        flexGrow?: number;
        flexShrink?: number;
        flexWrap?: FlexWrap;
        gap?: number | { column?: number; row?: number };
        height?: number | "auto";
        inverse?: boolean;
        italic?: boolean;
        justifyContent?: Justify;
        margin?: EdgeValue;
        maxHeight?: number;
        maxWidth?: number;
        minHeight?: number;
        minWidth?: number;
        overflow?: Overflow;
        overflowX?: Overflow;
        overflowY?: Overflow;
        padding?: EdgeValue;
        position?: { bottom?: number; left?: number; right?: number; top?: number };
        positionType?: PositionType;
        scrollLeft?: number;
        scrollTop?: number;
        text: string;
        underline?: boolean;
        width?: number | "auto";
        wrap?: Wrap;
    }

    Hierarchy (View Summary)

    Index

    Properties

    alignContent?: Align
    alignItems?: Align
    alignSelf?: Align
    aspectRatio?: number

    width / height ratio. When set and exactly one of width / height is a number (the other being 'auto' or unset), the auto axis is derived as set / aspectRatio (height) or set * aspectRatio (width). Both axes explicit ⇒ ratio is ignored.

    bgColor?: Color
    bold?: boolean
    color?: Color
    dim?: boolean
    display?: Display
    flex?: number
    flexBasis?: number | "auto"
    flexDirection?: FlexDirection
    flexGrow?: number
    flexShrink?: number
    flexWrap?: FlexWrap
    gap?: number | { column?: number; row?: number }
    height?: number | "auto"
    inverse?: boolean
    italic?: boolean
    justifyContent?: Justify
    margin?: EdgeValue
    maxHeight?: number
    maxWidth?: number
    minHeight?: number
    minWidth?: number
    overflow?: Overflow
    overflowX?: Overflow
    overflowY?: Overflow
    padding?: EdgeValue
    position?: { bottom?: number; left?: number; right?: number; top?: number }
    positionType?: PositionType
    scrollLeft?: number

    Initial scroll offset; <ScrollView> typically owns this via mutation.

    scrollTop?: number
    text: string

    The literal text to render. \n forces a hard line break.

    underline?: boolean
    width?: number | "auto"
    wrap?: Wrap

    How to handle text that does not fit on one line. Defaults to 'wrap'.