forked from DylanVann/react-native-fast-image
-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathFFFastImageView.h
More file actions
32 lines (25 loc) · 1.13 KB
/
FFFastImageView.h
File metadata and controls
32 lines (25 loc) · 1.13 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
#import <UIKit/UIKit.h>
#import <SDWebImage/SDAnimatedImageView+WebCache.h>
#import <SDWebImage/SDWebImageDownloader.h>
#import <React/RCTComponent.h>
#import <React/RCTResizeMode.h>
#import "FFFastImageSource.h"
#ifdef RCT_NEW_ARCH_ENABLED
#import <react/renderer/components/rnfastimage/EventEmitters.h>
#endif
@interface FFFastImageView : SDAnimatedImageView
@property (nonatomic, copy) RCTDirectEventBlock onFastImageLoadStart;
@property (nonatomic, copy) RCTDirectEventBlock onFastImageProgress;
@property (nonatomic, copy) RCTDirectEventBlock onFastImageError;
@property (nonatomic, copy) RCTDirectEventBlock onFastImageLoad;
@property (nonatomic, copy) RCTDirectEventBlock onFastImageLoadEnd;
@property (nonatomic, assign) RCTResizeMode resizeMode;
@property (nonatomic, strong) FFFastImageSource *source;
@property (nonatomic, strong) UIImage *placeholderImage;
@property (nonatomic, strong) NSString *defaultSource;
@property (nonatomic, strong) UIColor *imageColor;
#ifdef RCT_NEW_ARCH_ENABLED
@property(nonatomic) facebook::react::SharedViewEventEmitter eventEmitter;
#endif
- (void)didSetProps:(NSArray<NSString*>*)changedProps;
@end