react-native-range-slider-expo
react-native-range-slider-expo copied to clipboard
[typescript] SliderProps are not compatible with JSX.IntrinsicAttributes
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);
Same here