Type alias ListProps

ListProps: {
    componentProps?: ViewProps;
    items: (string | React.ReactNode)[];
    nested?: boolean;
    style?: StyleProp<ViewStyle>;
    textType?: TextTypes;
    type?: "unordered" | "ordered";
}

Props for List component

Type declaration

  • Optional componentProps?: ViewProps

    Direct props to set on the React Native component (including iOS and Android specific props). Most use cases should not need this.

  • items: (string | React.ReactNode)[]

    Items to render. If strings will apply proper typeface. If passing element you need to set this.styles.

  • Optional nested?: boolean

    Indicate if list is nested in another list

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

  • Optional textType?: TextTypes

    Text type to render (Standard is default. Normally only body 01 or 02 should be used)

  • Optional type?: "unordered" | "ordered"

    Type of list (default is unordered)

Generated using TypeDoc