interface SeekBarProps {
    chapterMarkers?: ((index?) => ReactNode);
    onScrubbing?: ((scrubberTime) => void);
    renderAboveThumbComponent?: ((isScrubbing, scrubberTime, seekBarWidth) => ReactNode);
    sliderContainerStyle?: ViewStyle;
    sliderMaximumTrackStyle?: ViewStyle;
    sliderMinimumTrackStyle?: ViewStyle;
    style?: StyleProp<ViewStyle>;
    testID?: string;
    thumbStyle?: StyleProp<ViewStyle>;
    thumbTouchSize?: ThumbDimensions;
}

Properties

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

Optional

Type declaration

    • (index?): ReactNode
    • Parameters

      • Optional index: number

      Returns ReactNode

onScrubbing?: ((scrubberTime) => void)

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

Type declaration

    • (scrubberTime): void
    • Parameters

      • scrubberTime: undefined | number

      Returns void

renderAboveThumbComponent?: ((isScrubbing, scrubberTime, seekBarWidth) => ReactNode)

Optional override the component that is rendered above the thumbnail.

Type declaration

    • (isScrubbing, scrubberTime, seekBarWidth): ReactNode
    • Parameters

      • isScrubbing: boolean
      • scrubberTime: undefined | number
      • seekBarWidth: number

      Returns ReactNode

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.

thumbTouchSize?: ThumbDimensions

Expose thumbTouchSize prop to allow custom thumb touch size.