Closed firede closed 3 years ago
Facing the same issue. Did someone found a solution for this?
If you don't need the label (labelStyle="none"
), you can hack it with JavaScript:
const [value, setValue] = useState(1 * 100) // init value: 1%
<RangeSlider
min={1} // min value: 0.01%
max={100 * 100} // max value: 100%
rangeEnabled={false}
initialLowValue={value}
onValueChanged={(low, high, fromUser) => {
fromUser && setValue(low);
}} />
<Text>expected value: {value / 100}%</Text>
v2 uses JS only, so you can use any numbers now :)
Example: