UNPKG

1.18 kBtext/x-cView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
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 * DEPRECATED!! DO NOT USE
28 * Instead use `[_bridge moduleForClass:[RCTImageLoader class]]`
29 */
30@interface RCTBridge (RCTImageLoader)
31
32@property (nonatomic, readonly) RCTImageLoader *imageLoader;
33
34@end