We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e0c058 commit 71315cbCopy full SHA for 71315cb
src/ios/RNCSlider.m
@@ -10,22 +10,11 @@
10
@implementation RNCSlider
11
{
12
float _unclippedValue;
13
- UITapGestureRecognizer * tapGesturer;
14
}
15
16
- (instancetype)initWithFrame:(CGRect)frame
17
18
- self = [super initWithFrame:frame];
19
- if (self) {
20
- tapGesturer = [[UITapGestureRecognizer alloc] initWithTarget: self action:@selector(tapHandler:)];
21
- [tapGesturer setNumberOfTapsRequired: 1];
22
- [self addGestureRecognizer:tapGesturer];
23
- }
24
- return self;
25
-}
26
-- (void)tapHandler:(UITapGestureRecognizer *)gesture {
27
- CGPoint touchPoint = [gesture locationInView:self];
28
- [self setValue:touchPoint.x / self.bounds.size.width animated: YES];
+ return [super initWithFrame:frame];
29
30
31
- (void)setValue:(float)value
0 commit comments