react-native/Libraries/Image/RCTNetworkImageViewManager.m
Christopher Chedeau 61b8c61903 Updates from Thu Mar 5
- [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
2015-03-06 09:55:10 -08:00

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