Type alias AccordionProps

AccordionProps: {
    children?: React.ReactNode;
    componentProps?: ViewProps;
    disabled?: boolean;
    firstAccordion?: boolean;
    onPress?: ((value, event) => void);
    open?: boolean;
    style?: StyleProp<ViewStyle>;
    textBreakMode?: TextBreakModes;
    title: string;
}

Props for Accordion component

Type declaration

  • Optional children?: React.ReactNode

    Children to render

  • 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.

  • Optional disabled?: boolean

    Indicate if disabled

  • Optional firstAccordion?: boolean

    Indicate if item is first accordion loaded (if using group. Set true if single accordion)

  • Optional onPress?: ((value, event) => void)
      • (value, event): void
      • On press callback. Component will toggle open automatically.

        Parameters

        • value: boolean
        • event: GestureResponderEvent

        Returns void

  • Optional open?: boolean

    Indicate if open. Component handles open changes.

  • Optional style?: StyleProp<ViewStyle>

    Style to set on the item

  • Optional textBreakMode?: TextBreakModes

    Break mode for text. Default is to wrap text

  • title: string

    Title to show for the accordion

Generated using TypeDoc