Skip to content

Commit

Permalink
Export YGInteropSetLogger method (#960)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
KimDaeWook authored and facebook-github-bot committed Oct 4, 2022
1 parent 619d115 commit d9a5c66
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ReactCommon/yoga/yoga/Yoga.cpp
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/yoga/yoga/Yoga.h
Expand Up @@ -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);
Expand Down

0 comments on commit d9a5c66

Please sign in to comment.