mirror of
https://github.com/status-im/react-native-fast-image.git
synced 2025-02-23 11:48:16 +00:00
31 lines
1.0 KiB
Objective-C
31 lines
1.0 KiB
Objective-C
#import <UIKit/UIKit.h>
|
|
|
|
#import <SDWebImage/UIImageView+WebCache.h>
|
|
#import <SDWebImage/SDWebImageDownloader.h>
|
|
|
|
// Import from the FLAnimated image CocoaPod if it's available.
|
|
#if __has_include(<FLAnimatedImage/FLAnimatedImageView.h>)
|
|
#import <FLAnimatedImage/FLAnimatedImageView.h>
|
|
// Import from the version within SDWebImage otherwise.
|
|
#elif __has_include(<SDWebImage/FLAnimatedImageView.h>)
|
|
#import <SDWebImage/FLAnimatedImageView.h>
|
|
#endif
|
|
|
|
#import <React/RCTComponent.h>
|
|
#import <React/RCTResizeMode.h>
|
|
|
|
#import "FFFastImageSource.h"
|
|
|
|
@interface FFFastImageView : FLAnimatedImageView
|
|
|
|
@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;
|
|
|
|
@end
|
|
|