interface ActionButtonProps {
    highlighted?: boolean;
    icon?: ImageSourcePropType;
    onPress?: (() => void);
    style?: StyleProp<ViewStyle>;
    svg?: ReactNode;
    touchable: boolean;
}

Properties

highlighted?: boolean

Whether the button should be highlighted with ColorTheme.iconSelected color.

The image to put in the button.

onPress?: (() => void)

The callback when the button is pressed.

Type declaration

    • (): void
    • Returns void

The styling overrides.

svg?: ReactNode

The SVG component to put in the button. Takes priority over images.

touchable: boolean

Whether the button should be touchable. This is true by default.

Generated using TypeDoc