Skip to content

Commit fdeaa55

Browse files
Krzysztof Borowywojteg1337
authored andcommitted
fix: remove animation when setting value (#111)
1 parent c65dbb7 commit fdeaa55

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ios/RNCSlider.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ - (void)setValue:(float)value
1818
super.value = value;
1919
}
2020

21+
- (void)setValue:(float)value animated:(BOOL)animated
22+
{
23+
_unclippedValue = value;
24+
[super setValue:value animated:animated];
25+
}
26+
2127
- (void)setMinimumValue:(float)minimumValue
2228
{
2329
super.minimumValue = minimumValue;

ios/RNCSliderManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ static void RNCSendSliderEvent(RNCSlider *sender, BOOL continuous, BOOL isSlidin
4444
)
4545
);
4646

47-
[sender setValue:value animated:YES];
47+
[sender setValue:value animated:NO];
4848
}
4949

5050
if (continuous) {

0 commit comments

Comments
 (0)