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

Hierarchy

  • ButtonBaseProps
    • ActionButtonProps

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 style overrides for the button.

svg?: ReactNode

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

testID?: string

An id used to locate this view in end-to-end tests.

touchable?: boolean

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