Update YGNodeStyleGetGap to return YGValue #1753
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/gap-ygvalue"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.The latest updates on your projects. Learn more about Vercel for Git ↗︎
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.
@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.
@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
terminating due to uncaught exception of type facebook::yoga::vanillajni::YogaJniException: std::exception
Seems like we still need to update method descriptor for
registerNatives
?{"jni_YGNodeStyleGetGapJNI", "(JI)F", (void*)jni_YGNodeStyleGetGapJNI},
(it says it's returning a float right now).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.
@NickGerleman merged this pull request in facebook/yoga@ae2d06d0f5.
Pull request closed