Skip to content
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

How to tell Yoga to update layout from native Fabric component size #1789

Open
jdesgagne-onemedical opened this issue Feb 21, 2025 · 0 comments

Comments

@jdesgagne-onemedical
Copy link

I've been trying to build a fabric native component and have it layout without requiring manual sizing from react, but I'm not able to find example or solution for this problem. I tried manually updating the frame of the contentView, but yoga seems to ignore it. React will render it, but next elements position will be 0,0.

Take this example for example https://github.com/reactwg/react-native-new-architecture/blob/main/docs/fabric-native-components.md, how would one modify it to not have a specific height in react and instead infer it from its children sizing ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant