react-native-slider
react-native-slider copied to clipboard
Feature: please export SliderProps
I want to type my component but I am not able to since SliderProps are not exported. The community slider package does export it though (I migrated to yours which was definitely the best decision)
![Bildschirmfoto 2022-04-25 um 10 17 19](https://user-images.githubusercontent.com/504909/165048706-b7f1a8cc-0188-4011-848d-c4755831ae38.png)
This package does export the types which have been generated automatically https://github.com/miblanchard/react-native-slider/blob/main/package.json#L6
Compared to the community package: https://github.com/callstack/react-native-slider/blob/main/src/package.json#L12
@hirbod are you saying the types definition in my package.json is incorrect, or SliderProps needs an additional export beyond that?
It's been a while, but irc the export was missing
Oh yeah, just read the error message in the screenshot
Bump! Would also love this.
For the time being, you can work around this problem with:
type SliderProps = Parameters<NonNullable<Slider['shouldComponentUpdate']>>[0];
bump, it'll be of great value to the consumers of this package!
SliderProps
can now be imported as of version 2.3.0 import { SliderProps } from '@miblanchard/react-native-slider/lib/types';