mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-28 20:25:33 +08:00
Updates from Wed 1 Apr
- (Xcode) Set indent=2 in all xcodeproj files. | Spencer Ahrens - [react-native] Fix dev menu keyboard shortcut in sample app | Ben Alpert - [ReactNative] Fix doc page for PushNotificationIOS | Eric Vicenti - [ReactNative] Improve <Image> docs | Christopher Chedeau - Add support for web-style data-uris | Felix Oghina - [react_native] Update AnimationsDebugModule to output more accurate FPS info | Andy Street - [ReactNative] Rename NavigationBar props | Eric Vicenti
This commit is contained in:
@@ -547,7 +547,11 @@ RCT_CGSTRUCT_CONVERTER(CGAffineTransform, (@[
|
||||
|
||||
UIImage *image = nil;
|
||||
NSString *path = json;
|
||||
if ([path isAbsolutePath]) {
|
||||
if ([path hasPrefix:@"data:"]) {
|
||||
NSURL *url = [NSURL URLWithString:path];
|
||||
NSData *imageData = [NSData dataWithContentsOfURL:url];
|
||||
image = [UIImage imageWithData:imageData];
|
||||
} else if ([path isAbsolutePath]) {
|
||||
image = [UIImage imageWithContentsOfFile:path];
|
||||
} else {
|
||||
image = [UIImage imageNamed:path];
|
||||
|
||||
@@ -321,7 +321,9 @@
|
||||
83CBBA2F1A601D0F00E9B192 /* React */,
|
||||
83CBBA001A601CBA00E9B192 /* Products */,
|
||||
);
|
||||
indentWidth = 2;
|
||||
sourceTree = "<group>";
|
||||
tabWidth = 2;
|
||||
};
|
||||
83CBBA001A601CBA00E9B192 /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
|
||||
Reference in New Issue
Block a user