Add Yoga 3.2 Release notes (#1761)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1761 Whips up some release notes for what is new since Yoga 3.1. https://github.com/facebook/yoga/compare/v3.1.0...v3.2.0 The relevant packages have already been published. Reviewed By: joevilches Differential Revision: D66679637 fbshipit-source-id: dd94e2a52f2bdc80541c331d1fb39de82669cc7a
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e177477144
commit
733ba24064
@@ -8,7 +8,12 @@
|
||||
*/
|
||||
|
||||
import {useMemo} from 'react';
|
||||
import Yoga, {Direction, Overflow, Node as YogaNode} from 'yoga-layout';
|
||||
import Yoga, {
|
||||
Direction,
|
||||
Display,
|
||||
Overflow,
|
||||
Node as YogaNode,
|
||||
} from 'yoga-layout';
|
||||
import {FlexStyle, applyStyle} from './FlexStyle';
|
||||
import LayoutBox from './LayoutBox';
|
||||
|
||||
@@ -109,6 +114,16 @@ function metricsFromYogaNode(node: YogaNode): LayoutMetrics {
|
||||
return 'visible';
|
||||
}
|
||||
})(),
|
||||
display: (() => {
|
||||
switch (node.getDisplay()) {
|
||||
case Display.Flex:
|
||||
return 'flex';
|
||||
case Display.None:
|
||||
return 'none';
|
||||
case Display.Contents:
|
||||
return 'contents';
|
||||
}
|
||||
})(),
|
||||
children,
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user