mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Rename YGUnitPixel to YGPoint...
Summary: ...to reflect the modern world we live in with dynamic DPI platforms :) Closes https://github.com/facebook/yoga/pull/375 Reviewed By: dshahidehpour Differential Revision: D4528518 Pulled By: emilsjolander fbshipit-source-id: e422bd4ae148e02c598a7b484a6adfa8c0e1e0c9
This commit is contained in:
committed by
Facebook Github Bot
parent
dbaa687518
commit
67f6b32409
@@ -504,7 +504,7 @@ RCT_CGSTRUCT_CONVERTER(CGAffineTransform, (@[
|
||||
if (!json) {
|
||||
return YGValueUndefined;
|
||||
} else if ([json isKindOfClass:[NSNumber class]]) {
|
||||
return (YGValue) { [json floatValue], YGUnitPixel };
|
||||
return (YGValue) { [json floatValue], YGUnitPoint };
|
||||
} else if ([json isKindOfClass:[NSString class]]) {
|
||||
NSString *s = (NSString *) json;
|
||||
if ([s hasSuffix:@"%"]) {
|
||||
|
||||
Reference in New Issue
Block a user