rn-range-slider
Advanced tools
Comparing version 1.2.1 to 1.2.2
{ | ||
"name": "rn-range-slider", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Tigran Sahakyan <mail.of.tigran@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React Native Range Slider for Android and iOS", |
@@ -49,3 +49,3 @@ # RangeSlider | ||
#### Properties | ||
### Properties | ||
@@ -55,5 +55,4 @@ Supported color formats are: **#RGB**, **#RGBA**, **#RRGGBB**, **#RRGGBBAA** | ||
| Property | Description | Type | Default Value | | ||
| Name | Description | Type | Default Value | | ||
|----------|-----------------------|------|:-------------:| | ||
| onValueChanged | A callback to be called when value was changed.<br/>**(lowValue, highValue, fromUser) => {}**<br/>**fromUser** parameter is true if the value was changed because of user's interaction (not by calling **setLowValue** or **setHighValue** methods). Just like android's [OnSeekbarChangeListener](https://developer.android.com/reference/android/widget/SeekBar.OnSeekBarChangeListener). | Function | **4** | | ||
| rangeEnabled | Slider works as an ordinary slider with 1 control if false | Boolean | **true** | | ||
@@ -84,6 +83,6 @@ | lineWidth | Width of slider's line | Number | **4** | | ||
| initialHighValue | Initial value of higher thumb | Number (integer) | **100** | | ||
<br/> | ||
If **initialLowValue** ( or **initialHighValue**) is not provided, it's set to **min** (or **max**). | ||
#### Methods | ||
### Methods | ||
@@ -113,8 +112,14 @@ To call methods of ```RangeSlider``` you need to have a reference to it's instance.<br/> | ||
| Method | Description | Params | | ||
|----------|-----------------------|------| | ||
| Name | Description | Params | | ||
|---|---|---| | ||
| setLowValue | Set low value of slider | value: number | | ||
| setHighValue | Set high value of slider | value: number | | ||
### Callbacks | ||
| Name | Description | Params | | ||
|----------|---------------------|--------| | ||
| onValueChanged | A callback to be called when value was changed.<br/>**fromUser** parameter is true if the value was changed because of user's interaction (not by calling **setLowValue** or **setHighValue** methods). Just like android's [OnSeekbarChangeListener](https://developer.android.com/reference/android/widget/SeekBar.OnSeekBarChangeListener). | lowValue: number<br/><br/>highValue: number<br/><br/>fromUser: boolean | | ||
## Known issues | ||
* Label's corner radius is not working on iOS |
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
122
962649