1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | #import <UIKit/UIKit.h>
|
9 |
|
10 | #import <React/RCTBridge.h>
|
11 | #import <React/RCTResizeMode.h>
|
12 | #import <React/RCTURLRequestHandler.h>
|
13 | #import <React/RCTImageDataDecoder.h>
|
14 | #import <React/RCTImageURLLoader.h>
|
15 | #import <React/RCTImageCache.h>
|
16 | #import <React/RCTImageLoaderProtocol.h>
|
17 |
|
18 | @interface RCTImageLoader : NSObject <RCTBridgeModule, RCTImageLoaderProtocol>
|
19 | - (instancetype)init;
|
20 | - (instancetype)initWithRedirectDelegate:(id<RCTImageRedirectProtocol>)redirectDelegate NS_DESIGNATED_INITIALIZER;
|
21 | - (instancetype)initWithRedirectDelegate:(id<RCTImageRedirectProtocol>)redirectDelegate
|
22 | loadersProvider:(NSArray<id<RCTImageURLLoader>> * (^)(void))getLoaders
|
23 | decodersProvider:(NSArray<id<RCTImageDataDecoder>> * (^)(void))getDecoders;
|
24 | @end
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 | @interface RCTBridge (RCTImageLoader)
|
31 |
|
32 | @property (nonatomic, readonly) RCTImageLoader *imageLoader;
|
33 |
|
34 | @end
|