mirror of
https://github.com/status-im/react-native.git
synced 2025-01-23 07:49:25 +00:00
27 lines
632 B
Mathematica
27 lines
632 B
Mathematica
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
||
|
|
||
|
#import "RCTNetworkImageViewManager.h"
|
||
|
|
||
|
#import "RCTNetworkImageView.h"
|
||
|
|
||
|
#import "RCTConvert.h"
|
||
|
#import "RCTUtils.h"
|
||
|
|
||
|
#import "RCTImageDownloader.h"
|
||
|
|
||
|
@implementation RCTNetworkImageViewManager
|
||
|
|
||
|
- (UIView *)view
|
||
|
{
|
||
|
RCTNetworkImageView *view = [[RCTNetworkImageView alloc] initWithFrame:CGRectZero imageDownloader:[RCTImageDownloader sharedInstance]];
|
||
|
view.contentMode = UIViewContentModeScaleAspectFill;
|
||
|
return view;
|
||
|
}
|
||
|
|
||
|
RCT_REMAP_VIEW_PROPERTY(defaultImageSrc, defaultImage)
|
||
|
RCT_REMAP_VIEW_PROPERTY(src, imageURL)
|
||
|
RCT_REMAP_VIEW_PROPERTY(resizeMode, contentMode)
|
||
|
|
||
|
@end
|
||
|
|