Type alias ActionSheetItem

ActionSheetItem: {
    danger?: boolean;
    divider?: boolean;
    hidden?: boolean;
    icon?: {
        icon?: CarbonIcon;
        image?: ImageSourcePropType;
    };
    onPress: (() => void);
    text: string;
}

Item to pass to ActionSheet

Type declaration

  • Optional danger?: boolean

    Indicate if item is dangerous. When using System iOS action sheet only ONE item can be dangerous.

  • Optional divider?: boolean

    Indicate that divider should be rendered (does not apply to last item, and only for non system ActionSheet)

  • Optional hidden?: boolean

    Indicate if hidden (won't show)

  • Optional icon?: {
        icon?: CarbonIcon;
        image?: ImageSourcePropType;
    }

    Icon data to render on menu (Only for custom action sheet (not rendered for CANCEL button))

    • Optional icon?: CarbonIcon

      Set to an icon from Carbon (size 20). If both image and icon are set ICON will be used.

    • Optional image?: ImageSourcePropType

      Set to an image using require('../assets/myImage.png') This will be contained in the view. 20x20 size for rendering (image can be anything but should be square ratio)

  • onPress: (() => void)
      • (): void
      • Press event (this will also automatically close the ActionSheet as well)

        Returns void

  • text: string

    Name for button

Generated using TypeDoc