File tree Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Expand file tree Collapse file tree 4 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : "rnoh-slider" ,
3
- "version" : "0.0.1 " ,
3
+ "version" : "4.4.3 " ,
4
4
"description" : "react-native-slider for HarmonyOS" ,
5
5
"main" : "index.ets" ,
6
6
"author" : "Huawei" ,
Original file line number Diff line number Diff line change @@ -73,6 +73,13 @@ export struct RNCSlider {
73
73
this.unregisterDescriptorChangesListener = this.ctx.descriptorRegistry.subscribeToDescriptorChanges(this.tag,
74
74
(newDescriptor) => {
75
75
this.descriptor = (newDescriptor as SliderDescriptor)
76
+ let value = this.descriptor.props.value;
77
+ if (value < this.lowerLimit) {
78
+ value = this.lowerLimit;
79
+ } else if (value > this.upperLimit) {
80
+ value = this.upperLimit;
81
+ }
82
+ this.SliderValue = value;
76
83
}
77
84
);
78
85
this.SliderValue = this.descriptor.props.value;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @react-native-oh-library/slider" ,
3
- "version" : " 4.4.3-0.1.2 " ,
3
+ "version" : " 4.4.3-0.1.3 " ,
4
4
"license" : " MIT" ,
5
5
"author" : " react-native-community" ,
6
6
"homepage" : " https://github.com/callstack/react-native-slider#readme" ,
You can’t perform that action at this time.
0 commit comments