Type alias ModalProps

ModalProps: {
    children?: React.ReactNode;
    description?: string;
    open: boolean;
    primaryActionOnPress?: ((event) => void);
    primaryActionText?: string;
    secondaryActionOnPress?: ((event) => void);
    secondaryActionText?: string;
    title: string;
}

Props for Modal component

Type declaration

  • Optional children?: React.ReactNode

    Items to render

  • Optional description?: string

    Body to show

  • open: boolean

    Indicate if should open

  • Optional primaryActionOnPress?: ((event) => void)
      • (event): void
      • Primary button action (will not render if function and text not set)

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional primaryActionText?: string

    Primary text for action

  • Optional secondaryActionOnPress?: ((event) => void)
      • (event): void
      • Secondary button action (will not render if function and text not set)

        Parameters

        • event: GestureResponderEvent

        Returns void

  • Optional secondaryActionText?: string

    Secondary text for action

  • title: string

    Title to show

Generated using TypeDoc