interface SeekBarProps {
    chapterMarkers?: ((index?) => ReactNode);
    onScrubbing?: ((scrubTime) => void);
    sliderContainerStyle?: ViewStyle;
    sliderMaximumTrackStyle?: ViewStyle;
    sliderMinimumTrackStyle?: ViewStyle;
    style?: StyleProp<ViewStyle>;
    testID?: string;
    thumbStyle?: StyleProp<ViewStyle>;
}

Properties

chapterMarkers?: ((index?) => ReactNode)

Optional

Type declaration

    • (index?): ReactNode
    • Parameters

      • Optional index: number

      Returns ReactNode

onScrubbing?: ((scrubTime) => void)

Callback for slider value updates. The provided callback will not be debounced.

Type declaration

    • (scrubTime): void
    • Parameters

      • scrubTime: undefined | number

      Returns void

sliderContainerStyle?: ViewStyle

Optional style applied to the SeekBar container.

sliderMaximumTrackStyle?: ViewStyle

Optional style applied to the track right of the thumb.

sliderMinimumTrackStyle?: ViewStyle

Optional style applied to the track left of the thumb.

Optional style applied to the SeekBar.

testID?: string

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

Default

'seek-bar'
thumbStyle?: StyleProp<ViewStyle>

Optional style applied to the thumb of the slider.