Interface ConditionalPlayButtonProps

interface ConditionalPlayButtonProps {
    delay?: number;
    icon?: {
        pause: ReactNode;
        play: ReactNode;
        replay: ReactNode;
    };
    style?: StyleProp<ViewStyle>;
    testID?: string;
}

Hierarchy (view full)

Properties

delay?: number

The additional delay before the button is hidden when the player is waiting, in milliseconds.

Default

200 milliseconds.
icon?: {
    pause: ReactNode;
    play: ReactNode;
    replay: ReactNode;
}

The icon components used in the button.

Type declaration

  • pause: ReactNode
  • play: ReactNode
  • replay: ReactNode

The style overrides for the button.

testID?: string

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