rn-range-slider
Advanced tools
Comparing version 1.3.0 to 1.3.1
15
index.js
@@ -34,3 +34,3 @@ import React, {PureComponent} from 'react'; | ||
render() { | ||
let { valueType, initialHighValue, initialLowValue, min, max } = this.props; | ||
let { valueType, initialHighValue, initialLowValue, min, max, step } = this.props; | ||
if (initialLowValue === undefined) { | ||
@@ -50,3 +50,10 @@ initialLowValue = min; | ||
const sliderProps = {...this.props, initialLowValue, initialHighValue, min, max}; | ||
const sliderProps = { | ||
...this.props, | ||
initialLowValue: String(initialLowValue), | ||
initialHighValue: String(initialHighValue), | ||
min: String(min), | ||
max: String(max), | ||
step: String(step), | ||
}; | ||
return <NativeRangeSlider | ||
@@ -66,3 +73,3 @@ {...sliderProps} | ||
} | ||
this._slider.setNativeProps({ highValue: value }); | ||
this._slider.setNativeProps({ highValue: String(value) }); | ||
} | ||
@@ -75,3 +82,3 @@ | ||
} | ||
this._slider.setNativeProps({ lowValue: value }); | ||
this._slider.setNativeProps({ lowValue: String(value) }); | ||
} | ||
@@ -78,0 +85,0 @@ } |
{ | ||
"name": "rn-range-slider", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Tigran Sahakyan <mail.of.tigran@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React Native Range Slider for Android and iOS", |
@@ -143,1 +143,2 @@ # RangeSlider | ||
* Label's corner radius is not working on iOS | ||
* Problems with expo (won't fix as I don't take Expo seriously) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
965637
22
176
144