forked from callstack/react-native-slider
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRNCSliderComponentView.h
More file actions
36 lines (26 loc) · 1.25 KB
/
RNCSliderComponentView.h
File metadata and controls
36 lines (26 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#import <UIKit/UIKit.h>
#import <React/RCTViewComponentView.h>
#import "RNCSlider.h"
NS_ASSUME_NONNULL_BEGIN
typedef void (^RNCLoadImageCompletionBlock)(NSError * _Nullable error, UIImage * _Nullable image);
typedef void (^RNCLoadImageFailureBlock)();
@interface RNCSliderComponentView : RCTViewComponentView
@property (nonatomic, copy) RCTBubblingEventBlock onRNCSliderValueChange;
@property (nonatomic, copy) RCTBubblingEventBlock onRNCSliderSlidingStart;
@property (nonatomic, copy) RCTBubblingEventBlock onRNCSliderSlidingComplete;
@property (nonatomic, assign) float step;
@property (nonatomic, assign) float lastValue;
@property (nonatomic, assign) bool isSliding;
@property (nonatomic, assign) float lowerLimit;
@property (nonatomic, assign) float upperLimit;
@property (nonatomic, strong) UIImage *trackImage;
@property (nonatomic, strong) UIImage *minimumTrackImage;
@property (nonatomic, strong) UIImage *maximumTrackImage;
@property (nonatomic, strong) UIImage *thumbImage;
@property (nonatomic, assign) CGFloat thumbSize;
@property (nonatomic, assign) bool tapToSeek;
@property (nonatomic, strong) NSString *accessibilityUnits;
@property (nonatomic, strong) NSArray *accessibilityIncrements;
- (float) discreteValue:(float)value;
@end
NS_ASSUME_NONNULL_END