Closed fax1ty closed 1 month ago
Thanks for the report. Next week I want to release new version. I will try to repro!
Thanks @jpudysz for this great library. 🙌
Built-in breakpoints landscape and portrait also isnt working:
backgroundColor: {
landscape: theme.colors.background,
portrait: theme.colors.warning
},
@tamangupta1999 please read the docs, they work only on mobile when you don't register your own breakpoints.
@fax1ty I can't reproduce it.
Tested on Android:
UnistylesRuntime.screen.width
-> 448 container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
paddingHorizontal: 20,
backgroundColor: theme.colors.backgroundColor,
rowGap: 20,
transform: [
{
translateY: {
[mq.only.width(320, 448)]: 200,
[mq.only.width(449)]: 0
}
}
]
},
{"alignItems": "center", "backgroundColor": "#ffffff", "flex": 1, "justifyContent": "center", "paddingHorizontal": 20, "rowGap": 20, "transform": [{"translateY": 200}]}
Keep in mind that mq
is resolved in order and has the biggest priority.
Description
Steps to reproduce
Snack or a link to a repository (optional)
No response
Unistyles version
2.9.1
React Native version
0.74.2
Platforms
Android
Engine
Hermes
Architecture
Paper (old)