MediaSFU React Native
    Preparing search index...

    Interface ButtonTouch

    Button descriptor used by touch control components.

    ButtonTouch

    interface ButtonTouch {
        name?: string;
        icon?: string;
        alternateIcon?: string;
        onPress?: () => void;
        backgroundColor?: { default?: string; pressed?: string };
        active?: boolean;
        alternateIconComponent?: Element;
        iconComponent?: Element;
        customComponent?: Element;
        color?: string;
        activeColor?: string;
        inActiveColor?: string;
        show?: boolean;
        disabled?: boolean;
    }
    Index

    Properties

    name?: string

    Optional caption rendered under the icon.

    icon?: string

    Default FontAwesome5 icon name.

    alternateIcon?: string

    Alternate icon to display when active is true.

    onPress?: () => void

    Handler invoked when the button is tapped.

    backgroundColor?: { default?: string; pressed?: string }

    Background colors for idle and pressed states.

    active?: boolean

    Indicates whether the alternate icon/color should display.

    alternateIconComponent?: Element

    Custom component rendered when active.

    iconComponent?: Element

    Custom component rendered when inactive.

    customComponent?: Element

    Full override replacing icon + label.

    color?: string

    Label color when the button is inactive.

    activeColor?: string

    Icon color applied when active.

    inActiveColor?: string

    Icon color applied when inactive.

    show?: boolean

    Toggle to hide the button entirely when false.

    disabled?: boolean

    Disable press interactions.