C++ style enums 9/N: FlexDirection (#1394)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1394 X-link: https://github.com/facebook/react-native/pull/39484 Moves internal usages of YGDirection to Direction. bypass-github-export-checks Changelog: [Internal] Reviewed By: rshest Differential Revision: D49336066 fbshipit-source-id: b49e1ffcd79a427e36ea8d2c26debaa98ef3e4c9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9b99e4fc22
commit
6ec790dd1b
@@ -142,9 +142,7 @@ void nodeToString(
|
||||
const auto& style = node->getStyle();
|
||||
if (style.flexDirection() != yoga::Node{}.getStyle().flexDirection()) {
|
||||
appendFormattedString(
|
||||
str,
|
||||
"flex-direction: %s; ",
|
||||
YGFlexDirectionToString(style.flexDirection()));
|
||||
str, "flex-direction: %s; ", toString(style.flexDirection()));
|
||||
}
|
||||
if (style.justifyContent() != yoga::Node{}.getStyle().justifyContent()) {
|
||||
appendFormattedString(
|
||||
|
Reference in New Issue
Block a user