MediaSFU React Native (Expo)
    Preparing search index...

    Interface Button

    Configuration for a single control button.

    Button

    interface Button {
        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;
        disabled?: boolean;
        show?: boolean;
    }
    Index

    Properties

    name?: string

    Button label/name

    icon?: string

    Icon name (FontAwesome5)

    alternateIcon?: string

    Alternate icon name (shown when active)

    onPress?: () => void

    Click handler

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

    Background colors with default and pressed states

    active?: boolean

    Whether button is in active state

    alternateIconComponent?: Element

    Custom alternate icon component

    iconComponent?: Element

    Custom icon component

    customComponent?: Element

    Completely custom button component

    color?: string

    Icon color

    activeColor?: string

    Icon color when active

    inActiveColor?: string

    Icon color when inactive

    disabled?: boolean

    Whether button is disabled

    show?: boolean

    Whether to show the button