mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
9cb3ec9424
Summary: This diff introduces a blur radius property to the Image component on ios. If the radius specified is greater then 0 then native will apply a blur filter to the image Reviewed By: nicklockwood Differential Revision: D3054671 fb-gh-sync-id: d7a81ce5a08a3a2091c583f5053c6a86638b21b2 shipit-source-id: d7a81ce5a08a3a2091c583f5053c6a86638b21b2
28 lines
854 B
Objective-C
28 lines
854 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 "RCTImageComponent.h"
|
|
#import "RCTResizeMode.h"
|
|
|
|
@class RCTBridge;
|
|
@class RCTImageSource;
|
|
|
|
@interface RCTImageView : UIImageView <RCTImageComponent>
|
|
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
|
|
|
@property (nonatomic, assign) UIEdgeInsets capInsets;
|
|
@property (nonatomic, strong) UIImage *defaultImage;
|
|
@property (nonatomic, assign) UIImageRenderingMode renderingMode;
|
|
@property (nonatomic, strong) RCTImageSource *source;
|
|
@property (nonatomic, assign) CGFloat blurRadius;
|
|
|
|
@end
|