mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-09 09:12:06 +08:00
- [ReactNative] Fix indentation | Ben Alpert - [ReactKit] Bring back ability to jump to syntax error from redbox | Alex Kotliarskyi - [ReactKit] Update pthread.h import path to be (more?) correct | Ben Alpert - Simplified event handling | Nick Lockwood - [ReactNative] more readme - xcode error help | Spencer Ahrens
27 lines
689 B
Objective-C
27 lines
689 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 *)viewWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher
|
|
{
|
|
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
|
|
|