-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update YGNodeStyleGetGap to return YGValue #1753
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
f1004d5
to
d4b64f8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof. Thanks for noticing this.
It will end up being a breaking change, but we just cut a branch, and I think it would be better to do this then to introduce a new overlap for having the right behavior.
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Gap can be styled using both `points` and `percentages`, but YGNodeStyleGetGap currently returns a float value. To maintain alignment with the `padding` and `margin` functionalities and allow it to be handled in bridging code, this function has been updated to return YGValue. X-link: facebook/yoga#1753 Reviewed By: joevilches Differential Revision: D66513236 Pulled By: NickGerleman
876e4dd
to
b876f59
Compare
a2cc487
to
6509968
Compare
6509968
to
5da58c4
Compare
@NickGerleman I accidentally closed the PR while rebasing. I've combined the previous commits into one. Please take a look when you have time. Thank you. |
5da58c4
to
7ea9081
Compare
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
We seem to be crashing in Java bindings with Seems like we still need to update method descriptor for |
Oh, I missed that. I've corrected the method descriptor for registerNatives to align with the expected return type. Thank you for pointing it out. |
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Gap can be styled using both `points` and `percentages`, but YGNodeStyleGetGap currently returns a float value. To maintain alignment with the `padding` and `margin` functionalities and allow it to be handled in bridging code, this function has been updated to return YGValue. X-link: facebook/yoga#1753 Reviewed By: joevilches Differential Revision: D66513236 Pulled By: NickGerleman
Gap can be styled using both
points
andpercentages
, but YGNodeStyleGetGap currently returns a float value.To maintain alignment with the
padding
andmargin
functionalities and allow it to be handled in bridging code, this function has been updated to return YGValue.