Skip to content

Commit d9a5c66

Browse files
KimDaeWookfacebook-github-bot
authored andcommitted
Export YGInteropSetLogger method (#960)
Summary: When building and using C # libraries, EntryPointNotFoundException thrown from YGInteropSetLogger. so, I added YOGA_EXPORT on YGInteropSetLogger. X-link: facebook/yoga#960 Reviewed By: yungsters Differential Revision: D40027238 Pulled By: yungsters fbshipit-source-id: 6af584a16e66a31c91374a1bb64434888762e3c8
1 parent 619d115 commit d9a5c66

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

ReactCommon/yoga/yoga/Yoga.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4336,6 +4336,11 @@ YOGA_EXPORT void YGConfigSetUseWebDefaults(
43364336
config->useWebDefaults = enabled;
43374337
}
43384338

4339+
YOGA_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(
4340+
const YGConfigRef config) {
4341+
return config->useLegacyStretchBehaviour;
4342+
}
4343+
43394344
YOGA_EXPORT void YGConfigSetUseLegacyStretchBehaviour(
43404345
const YGConfigRef config,
43414346
const bool useLegacyStretchBehaviour) {

ReactCommon/yoga/yoga/Yoga.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ void YGConfigSetShouldDiffLayoutWithoutLegacyStretchBehaviour(
318318
// resulted in implicit behaviour similar to align-self: stretch; Because this
319319
// was such a long-standing bug we must allow legacy users to switch back to
320320
// this behaviour.
321+
WIN_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(YGConfigRef config);
321322
WIN_EXPORT void YGConfigSetUseLegacyStretchBehaviour(
322323
YGConfigRef config,
323324
bool useLegacyStretchBehaviour);

0 commit comments

Comments
 (0)