mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
fd48bc3cff
Summary: Mirrors Android's support for multiple sources for Image, allowing us to fetch new images as the size of the view changes. Reviewed By: mmmulani Differential Revision: D3615134 fbshipit-source-id: 3d0bf2b75f63a4379e0e49f2dab9aea351b31d5f
28 lines
869 B
Objective-C
28 lines
869 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
#import "RCTResizeMode.h"
|
|
|
|
@class RCTBridge;
|
|
@class RCTImageSource;
|
|
|
|
@interface RCTImageView : UIImageView
|
|
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
|
|
|
@property (nonatomic, assign) UIEdgeInsets capInsets;
|
|
@property (nonatomic, strong) UIImage *defaultImage;
|
|
@property (nonatomic, assign) UIImageRenderingMode renderingMode;
|
|
@property (nonatomic, copy) NSArray<RCTImageSource *> *source;
|
|
@property (nonatomic, assign) CGFloat blurRadius;
|
|
@property (nonatomic, assign) RCTResizeMode resizeMode;
|
|
|
|
@end
|