Evaluate sx
prop when native app window dimensions changes (e.g. on rotation)
#1404
Unanswered
ts-candide
asked this question in
Q&A
Replies: 1 comment
-
I'm working around this with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Let's say we have a Box which utilises the
sx
prop to build a responsive design:Similar to the web platform, I'd like this to re-evaluate the
sx
prop when the screen dimensions changes, e.g. when the device is rotated. However, this isn't currently happening.See screencast below, which is based on this Snack. Using the default media queries, when rotating, I'd expect the box to change width and colour, as a different breakpoint is hit. But this doesn't happen, until the app is reloaded.
How can I achieve this outcome?
Screen.Recording.2023-11-23.at.11.15.51.mov
Beta Was this translation helpful? Give feedback.
All reactions