mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 09:37:21 +08:00
Fixed a typo and added a test case
Reviewed By: emilsjolander Differential Revision: D7289221 fbshipit-source-id: 48ee9ccfac4adee51d515a366b5a11790f7236fc
This commit is contained in:
committed by
Facebook Github Bot
parent
139d554c48
commit
ce92b8592b
@@ -778,7 +778,7 @@ void YGNodeStyleSetFlexShrink(const YGNodeRef node, const float flexShrink) {
|
||||
if (!YGFloatOptionalFloatEquals(node->getStyle().flexShrink, flexShrink)) {
|
||||
YGStyle style = node->getStyle();
|
||||
if (YGFloatIsUndefined(flexShrink)) {
|
||||
style.flexGrow = {true, 0};
|
||||
style.flexShrink = {true, 0};
|
||||
} else {
|
||||
style.flexShrink = {false, flexShrink};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user