-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Breakpoints don't trigger on iPadOS when resizing a window with Stage Manager #208
Comments
Hey 👋 thanks for the report. Will get back to you, when I will have a plan when to release it. |
I was interesting in learning more about unistyles and wanted to take a stab at this myself. It ended up being fairly simple! |
How cool is that ?! Thank you! |
No problem! Happy to help! |
Description
iPadOS provides some primitive window management features through Stage Manager. When resizing a React Native view using Unistyles and breakpoints one would expect that as you make the window smaller your UI will re-render with the correct styling for the given set of breakpoints. Instead the UI stays the same and overflows outside of the bounds of the application window.
I'm happy to put together an example repo if necessary, but this behavior seems trivial to reproduce in any repo that I've tried it in.
Interestingly if I console.log the
Dimensions.width
orDimsensions.height
from theDimensions
package inreact-native
the values update in realtime as I resize the window. So it seems the RN runtime is detecting the size.Steps to reproduce
Snack or a link to a repository (optional)
No response
Unistyles version
2.7.2
React Native version
0.74.1
Platforms
iOS
Engine
Hermes
Architecture
Paper (old)
The text was updated successfully, but these errors were encountered: