File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
React/Fabric/Mounting/ComponentViews/Image Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 6
6
*/
7
7
8
8
#import < React/RCTImageResponseDelegate.h>
9
+ #import < React/RCTUIImageViewAnimated.h>
9
10
#import < React/RCTViewComponentView.h>
10
11
11
12
NS_ASSUME_NONNULL_BEGIN
@@ -15,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
15
16
*/
16
17
@interface RCTImageComponentView : RCTViewComponentView <RCTImageResponseDelegate> {
17
18
@protected
18
- UIImageView *_imageView;
19
+ RCTUIImageViewAnimated *_imageView;
19
20
}
20
21
21
22
@end
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ - (instancetype)initWithFrame:(CGRect)frame
30
30
static auto const defaultProps = std::make_shared<ImageProps const >();
31
31
_props = defaultProps;
32
32
33
- _imageView = [[UIImageView alloc ] initWithFrame: self .bounds ];
33
+ _imageView = [RCTUIImageViewAnimated new ];
34
34
_imageView.clipsToBounds = YES ;
35
35
_imageView.contentMode = RCTContentModeFromImageResizeMode (defaultProps->resizeMode );
36
36
_imageView.layer .minificationFilter = kCAFilterTrilinear ;
You can’t perform that action at this time.
0 commit comments