We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, using breakpoints or media queries on mobile returns values in pixels (not in points, meaning the scale factor is ignored).
breakpoints
media queries
This behavior can be convenient in cases where you only use media queries for browsers and don't need breakpoints on mobile.
Based on this discussion: #395 we plan to introduce a setting that allows using points instead of pixels on mobile.
I'm still unsure if this should be enabled by default.
Example configuration:
Stylesheet.create({ // other configs settings: { nativeBreakpointsMode: 'points' // defaults to 'pixels' } })
This will only affect mq and breakpoints, while the web logic will remain unchanged.
mq
No response
3.0.0-beta.5
0.76.5
Web, iOS, Android
None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Currently, using
breakpoints
ormedia queries
on mobile returns values in pixels (not in points, meaning the scale factor is ignored).This behavior can be convenient in cases where you only use media queries for browsers and don't need breakpoints on mobile.
Based on this discussion: #395
we plan to introduce a setting that allows using points instead of pixels on mobile.
I'm still unsure if this should be enabled by default.
Example configuration:
This will only affect
mq
andbreakpoints
, while the web logic will remain unchanged.Steps to Reproduce
Snack or Repository Link (Optional)
No response
Unistyles Version
3.0.0-beta.5
React Native Version
0.76.5
Platforms
Web, iOS, Android
Expo
None
The text was updated successfully, but these errors were encountered: