Skip to content

Export YGInteropSetLogger method#960

Closed
KimDaeWook wants to merge 3 commits intofacebook:mainfrom
KimDaeWook:master
Closed

Export YGInteropSetLogger method#960
KimDaeWook wants to merge 3 commits intofacebook:mainfrom
KimDaeWook:master

Conversation

@KimDaeWook
Copy link
Copy Markdown
Contributor

When building and using C # libraries,
EntryPointNotFoundException thrown from YGInteropSetLogger.

so, I added YOGA_EXPORT on YGInteropSetLogger.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

Hi KimDaeWook! Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file.In order for us to review and merge your code, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@facebook-github-bot
Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@facebook-github-bot
Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@KimDaeWook
Copy link
Copy Markdown
Contributor Author

And YGConfigGetUseLegacyStretchBehaviour is not defined, so i add it additionally.

config->useWebDefaults = enabled;
}

YOGA_EXPORT bool YGConfigGetUseLegacyStretchBehaviour(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need this ? This flag might be removed in future.

@SidharthGuglani-zz
Copy link
Copy Markdown
Contributor

Thanks for creating this PR.
Will merge the PR for adding YOGA_EXPORT to YGInteropSetLogger after you remove other changes

@NickGerleman
Copy link
Copy Markdown
Contributor

It looks like the C# bindings already assume YGConfigGetUseLegacyStretchBehaviour. From recent discussions on RN compatibility, I don't think we will be able to remove the flag soon, so adding a public accessor seems righteous to me.

Otherwise, fixing the mismatch in export declaration is a good change.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot pushed a commit to facebook/litho that referenced this pull request Oct 4, 2022
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
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Oct 4, 2022
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
liujinye-sys pushed a commit to open-vela/external_yoga that referenced this pull request Dec 16, 2025
Summary:
When building and using C # libraries,
EntryPointNotFoundException thrown from YGInteropSetLogger.

so, I added YOGA_EXPORT on YGInteropSetLogger.

Pull Request resolved: facebook/yoga#960

Reviewed By: yungsters

Differential Revision: D40027238

Pulled By: yungsters

fbshipit-source-id: 6af584a16e66a31c91374a1bb64434888762e3c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants