Skip to content

How will this package handle @container queries? #168

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

Closed
matthew-dean opened this issue Oct 4, 2022 · 2 comments
Closed

How will this package handle @container queries? #168

matthew-dean opened this issue Oct 4, 2022 · 2 comments

Comments

@matthew-dean
Copy link

We're in the process of defining how our existing components (currently Styled Components for web) will be used with React Native. At the same time, Container Queries are just around the corner, and I could see us integrating these when these land in all major browsers.

My understanding is that only Styled Components v6 will support Container Queries, and is still in beta. When all the above variables are satisfied (v6 released, Container Queries in browsers), how will this package handle those? Since container queries are extremely popular / desired among web developers, I imagine the adoption will be extremely rapid compared to past CSS features.

@matthew-dean
Copy link
Author

It looks like something could be done with parsing the @container syntax into an observer for onLayout callbacks? https://reactnative.dev/docs/view#onlayout

@jacobp100
Copy link
Contributor

This library doesn’t go that far. You gotta layer that stuff on top

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

2 participants