Skip to content

Commit da23346

Browse files
Nick Lefeverfacebook-github-bot
authored andcommitted
Fix UNDEFINED YGValue serialization (#52376)
Summary: Pull Request resolved: #52376 Correct the expected serialization based on the YogaValue parse implementation: https://www.internalfb.com/code/fbsource/[ecdf90fe69d0]/xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/java/com/facebook/yoga/YogaValue.java?lines=66-68 Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D77663413 fbshipit-source-id: e8b6091a5d57c6d0301411371c290a867c9b5224
1 parent ceb5f1d commit da23346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/ReactCommon/react/renderer/core/graphicsConversions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ inline std::string toString(const SharedColor& value) {
6565
inline folly::dynamic toDynamic(const YGValue& dimension) {
6666
switch (dimension.unit) {
6767
case YGUnitUndefined:
68-
return nullptr;
68+
return "undefined";
6969
case YGUnitAuto:
7070
return "auto";
7171
case YGUnitMaxContent:

0 commit comments

Comments
 (0)