Skip to content

Commit dec3a7f

Browse files
Release: Version 4.2.0 (#350)
* Describe controlled value in the README * Update version of the package * Update version in lockfile
1 parent a3cc9e2 commit dec3a7f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To use this library you need to ensure you are using the correct version of Reac
9595
| `step` | Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.<br/>On Windows OS the default value is 1% of slider's range (from `minimumValue` to `maximumValue`). | number | No | |
9696
| `maximumTrackTintColor` | The color used for the track to the right of the button.<br/>Overrides the default gray gradient image on iOS. | [color](https://reactnative.dev/docs/colors) | No | |
9797
| `testID` | Used to locate this view in UI automation tests. | string | No | |
98-
| `value` | Initial value of the slider. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.<br/>_This is not a controlled component_, you don't need to update the value during dragging. | number | No | |
98+
| `value` | Write-only property representing the value of the slider. Can be used to programmaticaly controll the position of the thumb. Entered once at the beginning still acts as an initial value. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.<br/>_This is not a controlled component_, you don't need to update the value during dragging. | number | No | |
9999
| `tapToSeek` | Permits tapping on the slider track to set the thumb position.<br/>Defaults to false on iOS. No effect on Android or Windows. | bool | No | iOS |
100100
| `inverted` | Reverses the direction of the slider.<br/>Default value is false. | bool | No | |
101101
| `vertical` | Changes the orientation of the slider to vertical, if set to `true`.<br/>Default value is false. | bool | No | Windows |

src/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ To use this library you need to ensure you are using the correct version of Reac
9595
| `step` | Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.<br/>On Windows OS the default value is 1% of slider's range (from `minimumValue` to `maximumValue`). | number | No | |
9696
| `maximumTrackTintColor` | The color used for the track to the right of the button.<br/>Overrides the default gray gradient image on iOS. | [color](https://reactnative.dev/docs/colors) | No | |
9797
| `testID` | Used to locate this view in UI automation tests. | string | No | |
98-
| `value` | Initial value of the slider. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.<br/>_This is not a controlled component_, you don't need to update the value during dragging. | number | No | |
98+
| `value` | Write-only property representing the value of the slider. Can be used to programmaticaly controll the position of the thumb. Entered once at the beginning still acts as an initial value. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.<br/>_This is not a controlled component_, you don't need to update the value during dragging. | number | No | |
9999
| `tapToSeek` | Permits tapping on the slider track to set the thumb position.<br/>Defaults to false on iOS. No effect on Android or Windows. | bool | No | iOS |
100100
| `inverted` | Reverses the direction of the slider.<br/>Default value is false. | bool | No | |
101101
| `vertical` | Changes the orientation of the slider to vertical, if set to `true`.<br/>Default value is false. | bool | No | Windows |

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-community/slider",
3-
"version": "4.1.12",
3+
"version": "4.2.0",
44
"license": "MIT",
55
"author": "react-native-community",
66
"homepage": "https://github.com/callstack/react-native-slider#readme",

yarn.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -2196,7 +2196,7 @@
21962196
prettier "1.16.4"
21972197

21982198
"@react-native-community/slider@file:src":
2199-
version "4.1.12"
2199+
version "4.2.0"
22002200

22012201
"@react-native-windows/[email protected]":
22022202
version "0.65.0"

0 commit comments

Comments
 (0)