react-native-range-slider-expo icon indicating copy to clipboard operation
react-native-range-slider-expo copied to clipboard

[typescript] SliderProps are not compatible with JSX.IntrinsicAttributes

Open am0ka opened this issue 2 years ago • 1 comments

When I used RangeSlider in my project, I have encountered with such an error:

Property 'min' does not exist on type 'IntrinsicAttributes'

To resolve it, I found out that in src/RangeSlider.tsx when you export the module, you don't specify type for gestureHandlerRootHOC function, rather using generic version. So solution is:

export default gestureHandlerRootHOC<SliderProps & JSX.IntrinsicAttributes>(RangeSlider);

am0ka avatar Feb 16 '23 12:02 am0ka

Same here

carlosriveroib avatar Mar 27 '23 16:03 carlosriveroib