mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-12 19:48:30 +08:00
[react-packager][streamline oss] Move open sourced JS source to react-native-github
This commit is contained in:
26
ReactKit/Views/RCTNetworkImageViewManager.m
Normal file
26
ReactKit/Views/RCTNetworkImageViewManager.m
Normal file
@@ -0,0 +1,26 @@
|
||||
// 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
|
||||
|
||||
Reference in New Issue
Block a user