mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 17:45:59 +00:00
61b8c61903
- [react_native] JS files for D1885531 | Martin Konicek - Ported TabBarIOS to OSS and unified implementation | Nick Lockwood - [react-packager] Add minify option as query param | Amjad Masad - [ReactNative] Fix ExpandingText prop types | Christopher Chedeau - [react-packager] Make dev a query param option | Amjad Masad
26 lines
631 B
Objective-C
26 lines
631 B
Objective-C
// 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
|