From d9a5c66baac824923f373d52017067738654277a Mon Sep 17 00:00:00 2001 From: "DaeWook, Kim" Date: Mon, 3 Oct 2022 21:26:05 -0700 Subject: [PATCH] Export YGInteropSetLogger method (#960) Summary: When building and using C # libraries, EntryPointNotFoundException thrown from YGInteropSetLogger. so, I added YOGA_EXPORT on YGInteropSetLogger. X-link: https://github.com/facebook/yoga/pull/960 Reviewed By: yungsters Differential Revision: D40027238 Pulled By: yungsters fbshipit-source-id: 6af584a16e66a31c91374a1bb64434888762e3c8 --- ReactCommon/yoga/yoga/Yoga.cpp | 5 +++++ ReactCommon/yoga/yoga/Yoga.h | 1 + 2 files changed, 6 insertions(+) diff --git a/ReactCommon/yoga/yoga/Yoga.cpp b/ReactCommon/yoga/yoga/Yoga.cpp index 8b275770bfc9c3..96ad881e4b2a1c 100644 --- a/ReactCommon/yoga/yoga/Yoga.cpp +++ b/ReactCommon/yoga/yoga/Yoga.cpp @@ -4336,6 +4336,11 @@ YOGA_EXPORT void YGConfigSetUseWebDefaults( config->useWebDefaults = enabled; } +YOGA_EXPORT bool YGConfigGetUseLegacyStretchBehaviour( + const YGConfigRef config) { + return config->useLegacyStretchBehaviour; +} + YOGA_EXPORT void YGConfigSetUseLegacyStretchBehaviour( const YGConfigRef config, const bool useLegacyStretchBehaviour) { diff --git a/ReactCommon/yoga/yoga/Yoga.h b/ReactCommon/yoga/yoga/Yoga.h index 3444658bbe0d8e..15d2060d205c02 100644 --- a/ReactCommon/yoga/yoga/Yoga.h +++ b/ReactCommon/yoga/yoga/Yoga.h @@ -318,6 +318,7 @@ void YGConfigSetShouldDiffLayoutWithoutLegacyStretchBehaviour( // resulted in implicit behaviour similar to align-self: stretch; Because this // was such a long-standing bug we must allow legacy users to switch back to // this behaviour. +WIN_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(YGConfigRef config); WIN_EXPORT void YGConfigSetUseLegacyStretchBehaviour( YGConfigRef config, bool useLegacyStretchBehaviour);