mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-15 10:17:54 +08:00
feat: support aspect ratio media queries
This commit is contained in:
@@ -81,6 +81,8 @@ export function useTailwind<P>({ siblingClassName = "" } = {}) {
|
||||
|
||||
for (let index = 0, length = rules.length; index < length; index++) {
|
||||
const isMatch = match(rules[index], {
|
||||
"aspect-ratio": width / height,
|
||||
"device-aspect-ratio": width / height,
|
||||
type: platform,
|
||||
width,
|
||||
height,
|
||||
|
||||
Reference in New Issue
Block a user