add Image element (iOS)

This commit is contained in:
Horcrux
2016-05-05 18:50:22 +08:00
parent 39123c449d
commit 0b887bccf5
19 changed files with 308 additions and 98 deletions
+26
View File
@@ -0,0 +1,26 @@
/**
* Copyright (c) 2015-present, Horcrux.
* All rights reserved.
*
* This source code is licensed under the MIT-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#import "RNSVGImageManager.h"
#import "RNSVGImage.h"
#import "RCTConvert+RNSVG.h"
@implementation RNSVGImageManager
RCT_EXPORT_MODULE()
- (RNSVGRenderable *)node
{
return [RNSVGImage new];
}
RCT_EXPORT_VIEW_PROPERTY(layout, NSDictionary)
RCT_EXPORT_VIEW_PROPERTY(src, id)
@end