import type {ColorValue, HostComponent, ViewProps} from 'react-native'; import {ImageSource, codegenNativeComponent} from 'react-native'; import type { Float, WithDefault, DirectEventHandler, BubblingEventHandler, Double, } from 'react-native/Libraries/Types/CodegenTypes'; type Event = Readonly<{ value: Float; fromUser?: boolean; }>; export interface NativeProps extends ViewProps { accessibilityUnits?: string; accessibilityIncrements?: ReadonlyArray; disabled?: WithDefault; inverted?: WithDefault; vertical?: WithDefault; tapToSeek?: WithDefault; maximumTrackImage?: ImageSource; maximumTrackTintColor?: ColorValue; maximumValue?: Double; minimumTrackImage?: ImageSource; minimumTrackTintColor?: ColorValue; minimumValue?: Double; onChange?: BubblingEventHandler; onRNCSliderSlidingStart?: DirectEventHandler; onRNCSliderSlidingComplete?: DirectEventHandler; onRNCSliderValueChange?: BubblingEventHandler; step?: Double; testID?: string; thumbImage?: ImageSource; thumbTintColor?: ColorValue; thumbSize?: Float; trackImage?: ImageSource; value?: Float; lowerLimit?: Float; upperLimit?: Float; } export default codegenNativeComponent('RNCSlider', { interfaceOnly: true, }) as HostComponent;