-
Notifications
You must be signed in to change notification settings - Fork 24.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
feat: flex gap yoga bindings #34360
feat: flex gap yoga bindings #34360
Conversation
Base commit: 3f8071d |
Base commit: 3f8071d |
(cc @NickGerleman if you want to pick this up). This can't be merged as it is (I'm closing it for now). You need to create a PR against https://github.com/facebook/yoga with all the changes inside the Once that PR lands, you can re-open this one (or send a new PR) and rebase on top of main. |
@cortinico we have a PR in Yoga - facebook/yoga#1116 Let us know if there’s anything our end we can do to help you guys merge it |
@NickGerleman is taking over that PR. Once it gets merged, let's reopen this one 👍 |
Thank you for contributing this! I split out your PR to Yoga, and have different sections out for review right now. I think it should be fully merged this week. A consideration for this change is that style properties are currently passed to native components as top-level native component properties. So, adding a new style property adds a property to the same namespace folks are using for their custom components. This introduces the potential for collisions, which worries me a bit, especially for I've been digging a bit, into the right approach to take with this. E.g. if we may want to change the current style prop scheme, or whether we think this issue is rare enough to punt on it. The other concern I have is around Fabric compatibility. I can see this PR edits some of the files I would expect to see for wiring the prop in fabric, but I'm not sure it's complete at the moment. E.g. there is a change to |
This comment was marked as outdated.
This comment was marked as outdated.
Thanks for merging yoga and JNI changes @NickGerleman ❤️. I created a new PR with those changes. |
Summary
This PR adds React native binding for Yoga flex gap PR
Changelog
[General] [Added] - Flex gap yoga bindings
Test Plan
Run rn tester app and go to view example. You'll find a flex gap example. Example location -
packages/rn-tester/js/examples/View/ViewExample.js