@react-native-ohos/slider 5.1.2-rc.1 → 5.1.2-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +187 -183
- package/COMMITTERS.md +5 -5
- package/LICENSE +8 -8
- package/OAT.xml +72 -72
- package/README.OpenSource +10 -10
- package/README.md +12 -12
- package/babel.config.json +3 -3
- package/dist/Slider.js +1 -1
- package/dist/components/StepNumber.js +1 -1
- package/dist/components/StepsIndicator.js +1 -1
- package/dist/components/TrackMark.js +1 -1
- package/dist/utils/styles.js +1 -1
- package/example/.eslintrc +18 -18
- package/example/.node-version +6 -6
- package/example/.prettierrc.js +7 -7
- package/example/.watchmanconfig +5 -5
- package/example/app.json +3 -3
- package/example/babel.config.js +9 -9
- package/example/contexts.ts +9 -9
- package/example/harmony/AppScope/app.json5 +10 -10
- package/example/harmony/AppScope/resources/base/element/string.json +8 -8
- package/example/harmony/build-profile.template.json5 +35 -35
- package/example/harmony/codelinter.json +32 -32
- package/example/harmony/entry/build-profile.json5 +21 -21
- package/example/harmony/entry/hvigorfile.ts +8 -8
- package/example/harmony/entry/oh-package.json5 +10 -10
- package/example/harmony/entry/src/main/cpp/CMakeLists.txt +41 -41
- package/example/harmony/entry/src/main/cpp/PackageProvider.cpp +16 -16
- package/example/harmony/entry/src/main/ets/RNPackagesFactory.ets +13 -13
- package/example/harmony/entry/src/main/ets/entryability/EntryAbility.ets +27 -27
- package/example/harmony/entry/src/main/ets/pages/Index.ets +125 -125
- package/example/harmony/entry/src/main/ets/pages/SurfaceDeadlockTest.ets +135 -135
- package/example/harmony/entry/src/main/ets/pages/TouchDisplayer.ets +43 -43
- package/example/harmony/entry/src/main/module.json5 +51 -51
- package/example/harmony/entry/src/main/resources/base/element/color.json +7 -7
- package/example/harmony/entry/src/main/resources/base/element/string.json +15 -15
- package/example/harmony/entry/src/main/resources/base/profile/main_pages.json +5 -5
- package/example/harmony/format.ps1 +17 -17
- package/example/harmony/hvigor/hvigor-config.json5 +20 -20
- package/example/harmony/hvigorfile.ts +8 -8
- package/example/harmony/oh-package.json5 +11 -11
- package/example/index.js +10 -10
- package/example/jest.config.js +11 -11
- package/example/metro.config.js +30 -30
- package/example/package.json +58 -58
- package/example/react-native.config.js +11 -11
- package/example/scripts/create-build-profile.js +45 -45
- package/example/src/index.tsx +22 -22
- package/example/tsconfig.json +19 -19
- package/harmony/slider/oh-package.json5 +10 -10
- package/harmony/slider.har +0 -0
- package/package.json +92 -92
- package/react-native.config.js +11 -11
- package/src/RNCSliderNativeComponent.ts +51 -51
- package/src/Slider.tsx +356 -356
- package/src/components/StepNumber.tsx +23 -23
- package/src/components/StepsIndicator.tsx +89 -89
- package/src/components/TrackMark.tsx +59 -59
- package/src/index.ts +9 -9
- package/src/utils/constants.ts +17 -17
- package/src/utils/styles.ts +61 -61
- package/tsconfig.json +23 -23
- package/typings/index.d.ts +214 -214
- package/.github/Examples/Slider-Android-Example.gif +0 -0
- package/.github/Examples/Slider-Web-Example.gif +0 -0
- package/.github/Examples/Slider-Windows-Example.gif +0 -0
- package/.github/Examples/Slider-iOS-Example.gif +0 -0
- package/.github/ISSUE_TEMPLATE/BUG_REPORT.md +0 -38
- package/.github/ISSUE_TEMPLATE/FEATURE_REQUEST.md +0 -14
- package/.github/ISSUE_TEMPLATE/QUESTION.md +0 -9
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -11
- package/.github/workflows/ReactNativeSlider-CI.yml +0 -231
- package/harmony/slider/README.OpenSource +0 -11
package/typings/index.d.ts
CHANGED
|
@@ -1,214 +1,214 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
-
* Use of this source code is governed by a MIT license that can be
|
|
4
|
-
* found in the LICENSE file.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import * as React from 'react';
|
|
8
|
-
import { FC } from 'react';
|
|
9
|
-
import * as ReactNative from 'react-native';
|
|
10
|
-
import { ImageURISource } from 'react-native';
|
|
11
|
-
|
|
12
|
-
type Constructor<T> = new (...args: any[]) => T;
|
|
13
|
-
|
|
14
|
-
type SliderReferenceType =
|
|
15
|
-
| (React.MutableRefObject<SliderRef> & React.LegacyRef<Slider>)
|
|
16
|
-
| undefined;
|
|
17
|
-
|
|
18
|
-
export interface SliderPropsAndroid extends ReactNative.ViewProps {
|
|
19
|
-
/**
|
|
20
|
-
* Color of the foreground switch grip.
|
|
21
|
-
*/
|
|
22
|
-
thumbTintColor?: string;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface SliderRef {
|
|
26
|
-
updateValue(value: number): void;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type TrackMarksProps = {
|
|
30
|
-
isTrue: boolean;
|
|
31
|
-
index: number;
|
|
32
|
-
thumbImage?: ImageURISource;
|
|
33
|
-
StepMarker?: FC<MarkerProps> | boolean;
|
|
34
|
-
currentValue: number;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type MarkerProps = {
|
|
38
|
-
stepMarked: boolean;
|
|
39
|
-
currentValue: number;
|
|
40
|
-
index: number;
|
|
41
|
-
min: number;
|
|
42
|
-
max: number;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export interface SliderPropsIOS extends ReactNative.ViewProps {
|
|
46
|
-
/**
|
|
47
|
-
* Assigns a maximum track image. Only static images are supported.
|
|
48
|
-
* The leftmost pixel of the image will be stretched to fill the track.
|
|
49
|
-
*/
|
|
50
|
-
maximumTrackImage?: ReactNative.ImageURISource;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Assigns a minimum track image. Only static images are supported.
|
|
54
|
-
* The rightmost pixel of the image will be stretched to fill the track.
|
|
55
|
-
*/
|
|
56
|
-
minimumTrackImage?: ReactNative.ImageURISource;
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Permits tapping on the slider track to set the thumb position.
|
|
60
|
-
* Defaults to false on iOS. No effect on Android or Windows.
|
|
61
|
-
*/
|
|
62
|
-
tapToSeek?: boolean;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Sets an image for the thumb. Only static images are supported.
|
|
66
|
-
*/
|
|
67
|
-
thumbImage?: ReactNative.ImageURISource;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Assigns a single image for the track. Only static images
|
|
71
|
-
* are supported. The center pixel of the image will be stretched
|
|
72
|
-
* to fill the track.
|
|
73
|
-
*/
|
|
74
|
-
trackImage?: ReactNative.ImageURISource;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export interface SliderPropsWindows extends ReactNative.ViewProps {
|
|
78
|
-
/**
|
|
79
|
-
* Controls the orientation of the slider, default value is 'false' (horizontal).
|
|
80
|
-
*/
|
|
81
|
-
vertical?: boolean;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface SliderProps
|
|
85
|
-
extends SliderPropsIOS,
|
|
86
|
-
SliderPropsAndroid,
|
|
87
|
-
SliderPropsWindows {
|
|
88
|
-
/**
|
|
89
|
-
* If true the user won't be able to move the slider.
|
|
90
|
-
* Default value is false.
|
|
91
|
-
*/
|
|
92
|
-
disabled?: boolean;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* The color used for the track to the right of the button.
|
|
96
|
-
* Overrides the default blue gradient image.
|
|
97
|
-
*/
|
|
98
|
-
maximumTrackTintColor?: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Initial maximum value of the slider. Default value is 1.
|
|
102
|
-
*/
|
|
103
|
-
maximumValue?: number;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* The lower limit value of the slider. The user won't be able to slide below this limit.
|
|
107
|
-
*/
|
|
108
|
-
lowerLimit?: number;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* The upper limit value of the slider. The user won't be able to slide above this limit.
|
|
112
|
-
*/
|
|
113
|
-
upperLimit?: number;
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The color used for the track to the left of the button.
|
|
117
|
-
* Overrides the default blue gradient image.
|
|
118
|
-
*/
|
|
119
|
-
minimumTrackTintColor?: string;
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Initial minimum value of the slider. Default value is 0.
|
|
123
|
-
*/
|
|
124
|
-
minimumValue?: number;
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* Callback that is called when the user picks up the slider.
|
|
128
|
-
* The initial value is passed as an argument to the callback handler.
|
|
129
|
-
*/
|
|
130
|
-
onSlidingStart?: (value: number) => void;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Callback called when the user finishes changing the value (e.g. when the slider is released).
|
|
134
|
-
*/
|
|
135
|
-
onSlidingComplete?: (value: number) => void;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Callback continuously called while the user is dragging the slider.
|
|
139
|
-
*/
|
|
140
|
-
onValueChange?: (value: number) => void;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.
|
|
144
|
-
*/
|
|
145
|
-
step?: number;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* Used to style and layout the Slider. See StyleSheet.js and ViewStylePropTypes.js for more info.
|
|
149
|
-
*/
|
|
150
|
-
style?: ReactNative.StyleProp<ReactNative.ViewStyle>;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Used to locate this view in UI automation tests.
|
|
154
|
-
*/
|
|
155
|
-
testID?: string;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* Write-only property representing the value of the slider.
|
|
159
|
-
* Can be used to programmatically control the position of the thumb.
|
|
160
|
-
* Entered once at the beginning still acts as an initial value.
|
|
161
|
-
* The value should be between minimumValue and maximumValue,
|
|
162
|
-
* which default to 0 and 1 respectively.
|
|
163
|
-
* Default value is 0.
|
|
164
|
-
*
|
|
165
|
-
* This is not a controlled component, you don't need to update the
|
|
166
|
-
* value during dragging.
|
|
167
|
-
*/
|
|
168
|
-
value?: number;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* Reverses the direction of the slider.
|
|
172
|
-
*/
|
|
173
|
-
inverted?: boolean;
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Component to be rendered for each step indicator.
|
|
177
|
-
*/
|
|
178
|
-
StepMarker?: FC<MarkerProps>;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
*
|
|
182
|
-
*/
|
|
183
|
-
renderStepNumber?: boolean;
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* A string of one or more words to be announced by the screen reader.
|
|
187
|
-
* Otherwise, it will announce the value as a percentage.
|
|
188
|
-
* Requires passing a value to `accessibilityIncrements` to work correctly.
|
|
189
|
-
* Should be a plural word, as singular units will be handled.
|
|
190
|
-
*/
|
|
191
|
-
accessibilityUnits?: string;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* An array of values that represent the different increments displayed
|
|
195
|
-
* by the slider. All the values passed into this prop must be strings.
|
|
196
|
-
* Requires passing a value to `accessibilityUnits` to work correctly.
|
|
197
|
-
* The number of elements must be the same as `maximumValue`.
|
|
198
|
-
*/
|
|
199
|
-
accessibilityIncrements?: Array<string>;
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Reference object.
|
|
203
|
-
*/
|
|
204
|
-
ref?: SliderReferenceType;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* A component used to select a single value from a range of values.
|
|
209
|
-
*/
|
|
210
|
-
declare class SliderComponent extends React.Component<SliderProps> {}
|
|
211
|
-
declare const SliderBase: Constructor<ReactNative.NativeMethods> &
|
|
212
|
-
typeof SliderComponent;
|
|
213
|
-
export default class Slider extends SliderBase {}
|
|
214
|
-
export type SliderIOS = Slider;
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2025 Huawei Device Co., Ltd. All rights reserved
|
|
3
|
+
* Use of this source code is governed by a MIT license that can be
|
|
4
|
+
* found in the LICENSE file.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as React from 'react';
|
|
8
|
+
import { FC } from 'react';
|
|
9
|
+
import * as ReactNative from 'react-native';
|
|
10
|
+
import { ImageURISource } from 'react-native';
|
|
11
|
+
|
|
12
|
+
type Constructor<T> = new (...args: any[]) => T;
|
|
13
|
+
|
|
14
|
+
type SliderReferenceType =
|
|
15
|
+
| (React.MutableRefObject<SliderRef> & React.LegacyRef<Slider>)
|
|
16
|
+
| undefined;
|
|
17
|
+
|
|
18
|
+
export interface SliderPropsAndroid extends ReactNative.ViewProps {
|
|
19
|
+
/**
|
|
20
|
+
* Color of the foreground switch grip.
|
|
21
|
+
*/
|
|
22
|
+
thumbTintColor?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface SliderRef {
|
|
26
|
+
updateValue(value: number): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type TrackMarksProps = {
|
|
30
|
+
isTrue: boolean;
|
|
31
|
+
index: number;
|
|
32
|
+
thumbImage?: ImageURISource;
|
|
33
|
+
StepMarker?: FC<MarkerProps> | boolean;
|
|
34
|
+
currentValue: number;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type MarkerProps = {
|
|
38
|
+
stepMarked: boolean;
|
|
39
|
+
currentValue: number;
|
|
40
|
+
index: number;
|
|
41
|
+
min: number;
|
|
42
|
+
max: number;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export interface SliderPropsIOS extends ReactNative.ViewProps {
|
|
46
|
+
/**
|
|
47
|
+
* Assigns a maximum track image. Only static images are supported.
|
|
48
|
+
* The leftmost pixel of the image will be stretched to fill the track.
|
|
49
|
+
*/
|
|
50
|
+
maximumTrackImage?: ReactNative.ImageURISource;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Assigns a minimum track image. Only static images are supported.
|
|
54
|
+
* The rightmost pixel of the image will be stretched to fill the track.
|
|
55
|
+
*/
|
|
56
|
+
minimumTrackImage?: ReactNative.ImageURISource;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Permits tapping on the slider track to set the thumb position.
|
|
60
|
+
* Defaults to false on iOS. No effect on Android or Windows.
|
|
61
|
+
*/
|
|
62
|
+
tapToSeek?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Sets an image for the thumb. Only static images are supported.
|
|
66
|
+
*/
|
|
67
|
+
thumbImage?: ReactNative.ImageURISource;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Assigns a single image for the track. Only static images
|
|
71
|
+
* are supported. The center pixel of the image will be stretched
|
|
72
|
+
* to fill the track.
|
|
73
|
+
*/
|
|
74
|
+
trackImage?: ReactNative.ImageURISource;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface SliderPropsWindows extends ReactNative.ViewProps {
|
|
78
|
+
/**
|
|
79
|
+
* Controls the orientation of the slider, default value is 'false' (horizontal).
|
|
80
|
+
*/
|
|
81
|
+
vertical?: boolean;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface SliderProps
|
|
85
|
+
extends SliderPropsIOS,
|
|
86
|
+
SliderPropsAndroid,
|
|
87
|
+
SliderPropsWindows {
|
|
88
|
+
/**
|
|
89
|
+
* If true the user won't be able to move the slider.
|
|
90
|
+
* Default value is false.
|
|
91
|
+
*/
|
|
92
|
+
disabled?: boolean;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The color used for the track to the right of the button.
|
|
96
|
+
* Overrides the default blue gradient image.
|
|
97
|
+
*/
|
|
98
|
+
maximumTrackTintColor?: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Initial maximum value of the slider. Default value is 1.
|
|
102
|
+
*/
|
|
103
|
+
maximumValue?: number;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The lower limit value of the slider. The user won't be able to slide below this limit.
|
|
107
|
+
*/
|
|
108
|
+
lowerLimit?: number;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The upper limit value of the slider. The user won't be able to slide above this limit.
|
|
112
|
+
*/
|
|
113
|
+
upperLimit?: number;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* The color used for the track to the left of the button.
|
|
117
|
+
* Overrides the default blue gradient image.
|
|
118
|
+
*/
|
|
119
|
+
minimumTrackTintColor?: string;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Initial minimum value of the slider. Default value is 0.
|
|
123
|
+
*/
|
|
124
|
+
minimumValue?: number;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Callback that is called when the user picks up the slider.
|
|
128
|
+
* The initial value is passed as an argument to the callback handler.
|
|
129
|
+
*/
|
|
130
|
+
onSlidingStart?: (value: number) => void;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Callback called when the user finishes changing the value (e.g. when the slider is released).
|
|
134
|
+
*/
|
|
135
|
+
onSlidingComplete?: (value: number) => void;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Callback continuously called while the user is dragging the slider.
|
|
139
|
+
*/
|
|
140
|
+
onValueChange?: (value: number) => void;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.
|
|
144
|
+
*/
|
|
145
|
+
step?: number;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Used to style and layout the Slider. See StyleSheet.js and ViewStylePropTypes.js for more info.
|
|
149
|
+
*/
|
|
150
|
+
style?: ReactNative.StyleProp<ReactNative.ViewStyle>;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Used to locate this view in UI automation tests.
|
|
154
|
+
*/
|
|
155
|
+
testID?: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Write-only property representing the value of the slider.
|
|
159
|
+
* Can be used to programmatically control the position of the thumb.
|
|
160
|
+
* Entered once at the beginning still acts as an initial value.
|
|
161
|
+
* The value should be between minimumValue and maximumValue,
|
|
162
|
+
* which default to 0 and 1 respectively.
|
|
163
|
+
* Default value is 0.
|
|
164
|
+
*
|
|
165
|
+
* This is not a controlled component, you don't need to update the
|
|
166
|
+
* value during dragging.
|
|
167
|
+
*/
|
|
168
|
+
value?: number;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Reverses the direction of the slider.
|
|
172
|
+
*/
|
|
173
|
+
inverted?: boolean;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* Component to be rendered for each step indicator.
|
|
177
|
+
*/
|
|
178
|
+
StepMarker?: FC<MarkerProps>;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
*/
|
|
183
|
+
renderStepNumber?: boolean;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* A string of one or more words to be announced by the screen reader.
|
|
187
|
+
* Otherwise, it will announce the value as a percentage.
|
|
188
|
+
* Requires passing a value to `accessibilityIncrements` to work correctly.
|
|
189
|
+
* Should be a plural word, as singular units will be handled.
|
|
190
|
+
*/
|
|
191
|
+
accessibilityUnits?: string;
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* An array of values that represent the different increments displayed
|
|
195
|
+
* by the slider. All the values passed into this prop must be strings.
|
|
196
|
+
* Requires passing a value to `accessibilityUnits` to work correctly.
|
|
197
|
+
* The number of elements must be the same as `maximumValue`.
|
|
198
|
+
*/
|
|
199
|
+
accessibilityIncrements?: Array<string>;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Reference object.
|
|
203
|
+
*/
|
|
204
|
+
ref?: SliderReferenceType;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* A component used to select a single value from a range of values.
|
|
209
|
+
*/
|
|
210
|
+
declare class SliderComponent extends React.Component<SliderProps> {}
|
|
211
|
+
declare const SliderBase: Constructor<ReactNative.NativeMethods> &
|
|
212
|
+
typeof SliderComponent;
|
|
213
|
+
export default class Slider extends SliderBase {}
|
|
214
|
+
export type SliderIOS = Slider;
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: 🐛 Report a bug
|
|
3
|
-
about: Report a bug or regression in React Native Slider.
|
|
4
|
-
labels: 'bug report'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Environment
|
|
8
|
-
|
|
9
|
-
<!--
|
|
10
|
-
IMPORTANT
|
|
11
|
-
Provide us with all the below information. We need it to make sure we understand the issue you experience and to set up the environment to actually work on the fix.
|
|
12
|
-
|
|
13
|
-
MAKE SURE TO USE THE LATEST VERSION OF SLIDER
|
|
14
|
-
-->
|
|
15
|
-
|
|
16
|
-
* react-native info output:
|
|
17
|
-
```
|
|
18
|
-
// react-native info
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
* are you using the new architecture?
|
|
22
|
-
|
|
23
|
-
* which version of react & react-native are you using?
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
## Description
|
|
27
|
-
|
|
28
|
-
<!--
|
|
29
|
-
Describe your issue in detail. Include screenshots or recordings.
|
|
30
|
-
-->
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## Reproducible Demo
|
|
34
|
-
|
|
35
|
-
<!--
|
|
36
|
-
Let us know how to reproduce the issue. Include a code sample and share a project that reproduces the issue.
|
|
37
|
-
PLEASE follow the guidelines for providing a minimal example: https://stackoverflow.com/help/mcve.
|
|
38
|
-
-->
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: 🗣 Feature request
|
|
3
|
-
about: Request a React Native Slider feature.
|
|
4
|
-
labels: 'feature request'
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Describe the Feature
|
|
8
|
-
<!-- Describe the requested feature -->
|
|
9
|
-
|
|
10
|
-
## Possible Implementations
|
|
11
|
-
<!-- Describe how to implement the feature -->
|
|
12
|
-
|
|
13
|
-
## Related Issues
|
|
14
|
-
<!-- Link related issues here -->
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Summary:
|
|
2
|
-
---------
|
|
3
|
-
|
|
4
|
-
<!-- Thank you for sending the PR! We appreciate you spending the time to work on these changes.
|
|
5
|
-
Help us understand your motivation by explaining why you decided to make this change: -->
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Test Plan:
|
|
9
|
-
----------
|
|
10
|
-
|
|
11
|
-
<!-- Write your test plan here (**REQUIRED**). If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos! Increase test coverage whenever possible. -->
|