rn-range-slider
Advanced tools
Comparing version 1.1.6 to 1.2.0
{ | ||
"name": "rn-range-slider", | ||
"version": "1.1.6", | ||
"version": "1.2.0", | ||
"author": "Tigran Sahakyan <mail.of.tigran@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React Native Range Slider for Android and iOS", |
@@ -56,3 +56,3 @@ # RangeSlider | ||
|----------|-----------------------|------|:-------------:| | ||
| 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 setting **lowValue** or **highValue** properties). Just like android's [OnSeekbarChangeListener](https://developer.android.com/reference/android/widget/SeekBar.OnSeekBarChangeListener). | Function | **4** | | ||
| 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,7 +84,8 @@ | lineWidth | Width of slider's line | Number | **4** | | ||
If **initialLowValue** ( or **initialHighValue**) is not provided, it's set to **min** (or **max**). | ||
#### Methods | ||
To call methods on slider you need to have a reference to it's instance. | ||
React native provides 2 ways to do it. | ||
And after that you can call these methods on that instance. | ||
To call methods of ```RangeSlider``` you need to have a reference to it's instance.<br/> | ||
React native provides 2 ways to do it: | ||
@@ -109,2 +110,4 @@ ``` | ||
#### Available methos | ||
| Method | Description | Params | | ||
@@ -111,0 +114,0 @@ |----------|-----------------------|------| |
Sorry, the diff of this file is not supported yet
978423
117