We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you add typings for typescript? I would love to use this in my project, but without types it's really annoying. Many thanks!
The text was updated successfully, but these errors were encountered:
you can add your own typings in the mean time by declaring the module:
slider.d.ts
declare module 'react-native-slider' { import { ViewStyle } from 'react-native' interface ISlider { minimumValue?: number maximumValue?: number disabled?: boolean value?: number step?: number minimumTrackTintColor?: string maximumTrackTintColor?: string thumbTintColor?: string thumbTouchSize?: { width: number height: number } onValueChange?: (value: number) => void onSlidingStart?: (value: number) => void onSlidingComplete?: (value?: number) => void style?: ViewStyle trackStyle?: ViewStyle thumbStyle?: ViewStyle thumbImage?: number debugTouchArea?: boolean animateTransitions?: boolean animationType?: 'spring' | 'timing' animationConfig?: any } export default function Slider(props: ISlider): any }
Sorry, something went wrong.
Actually, it is not a solution, it would be better to have the types in the library.
No branches or pull requests
Can you add typings for typescript? I would love to use this in my project, but without types it's really annoying. Many thanks!
The text was updated successfully, but these errors were encountered: