Closed AliRehman7141 closed 3 years ago
I need the commas separators like 123,456,789 for that the I used %,d it is working fine on android but not working on ios default format is %d which working without commas on both sides.
text format %,d vs %d
<RangeSlider ref={ref => this.rangeSliderRef = ref} style={{ width: '95%', alignSelf: 'center', height: 70, marginTop: -50, marginBottom: 10, }} gravity={'center'} min={50000} max={20000000} step={20} labelBackgroundColor={"#ffffff"} labelBorderColor={"#000000"} labelTextColor={"#000000"} selectionColor={"#00B7B0"} blankColor={"#828894"} onValueChanged={(low, high, fromUser) => { console.log('value', low, high) this.setState({ rangeLow: low, rangeHigh: high }) }} textFormat={Platform.OS == 'android' ? "%,d" : "%d"} />
@AliRehman7141 , the api was changed in version 2, please have a look.
@githuboftigran is %,d will work on both sides?
@AliRehman7141 , textFormat prop is removed in version 2, please read the documentation
I need the commas separators like 123,456,789 for that the I used %,d it is working fine on android but not working on ios default format is %d which working without commas on both sides.
text format %,d vs %d