githuboftigran / rn-range-slider

A native slider with range
MIT License
242 stars 135 forks source link

How to reverse thumb positions? i need min on right, and max on left. #76

Closed shareef-dweikat closed 3 years ago

shareef-dweikat commented 3 years ago

How to reverse thumbs positions? i need min on right, and max on left.

githuboftigran commented 3 years ago

@shareef-dweikat , use negated values. -max for minimum and -min for maximum. Then, in onValueChanged, negate the low and high values.

shareef-dweikat commented 3 years ago

Works. Thanks.

mustafakameldev commented 3 years ago

@shareef-dweikat , use negated values. -max for minimum and -min for maximum. Then, in onValueChanged, negate the low and high values.

could you please get up more details ?