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

Changable size of touchable area of the thumbImage

Open trashcoder opened this issue 4 years ago • 3 comments

Describe the Feature

With the possibility to add a thumb image, it would be good to make the whole image touchable. Actually you can only touch a little area in the center of the image.

Possible Implementations

Just like react-native-slider it could be implemented in props as "thumbTouchSize".

Related Issues

trashcoder avatar Sep 17 '20 08:09 trashcoder

you can acheive this feature in this way

style={ {
transform: [{ scaleX: .75 }, { scaleY: .75 }, ) }]
} }

jawwad22 avatar Nov 26 '20 10:11 jawwad22

Thank you, but while scaleY works, scaleX does nothing: image

trashcoder avatar Dec 14 '20 10:12 trashcoder

Yeah, scaleX doesn't work if we wrap the slider inside a class component. But, it works within a functional component. I tried on version 4.1.10.

endruuu avatar Jan 04 '22 10:01 endruuu