react-native-fast-image/ios/FastImage/FFFastImageView.h

31 lines
1.0 KiB
C
Raw Normal View History

2017-04-13 04:13:44 +00:00
#import <UIKit/UIKit.h>
#import <SDWebImage/UIImageView+WebCache.h>
2017-04-28 15:06:10 +00:00
#import <SDWebImage/SDWebImageDownloader.h>
2018-04-25 00:25:22 +00:00
// Import from the FLAnimated image CocoaPod if it's available.
#if __has_include(<FLAnimatedImage/FLAnimatedImageView.h>)
2017-11-30 04:23:46 +00:00
#import <FLAnimatedImage/FLAnimatedImageView.h>
2018-04-25 00:25:22 +00:00
// Import from the version within SDWebImage otherwise.
#elif __has_include(<SDWebImage/FLAnimatedImageView.h>)
#import <SDWebImage/FLAnimatedImageView.h>
#endif
2017-04-13 04:13:44 +00:00
#import <React/RCTComponent.h>
#import <React/RCTResizeMode.h>
#import "FFFastImageSource.h"
@interface FFFastImageView : FLAnimatedImageView
2017-04-13 04:13:44 +00:00
@property (nonatomic, copy) RCTDirectEventBlock onFastImageLoadStart;
@property (nonatomic, copy) RCTDirectEventBlock onFastImageProgress;
2017-07-04 01:58:24 +00:00
@property (nonatomic, copy) RCTDirectEventBlock onFastImageError;
@property (nonatomic, copy) RCTDirectEventBlock onFastImageLoad;
@property (nonatomic, copy) RCTDirectEventBlock onFastImageLoadEnd;
2017-07-04 01:58:24 +00:00
@property (nonatomic, assign) RCTResizeMode resizeMode;
@property (nonatomic, strong) FFFastImageSource *source;
2017-04-13 04:13:44 +00:00
@end
2017-07-04 01:58:24 +00:00