We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e84d8b commit db9cb0eCopy full SHA for db9cb0e
README.md
@@ -80,7 +80,7 @@ transform(styles, { parseMediaQueries: true });
80
↓ ↓ ↓ ↓ ↓ ↓
81
82
```js
83
-{
+const styleObject = {
84
__mediaQueries: {
85
"@media (min-width: 50px) and (max-width: 150px)": [
86
{
@@ -108,14 +108,22 @@ transform(styles, { parseMediaQueries: true });
108
fontSize: 32
109
}
110
111
-}
+};
112
```
113
114
115
116
117
import { process } from "react-native-css-media-query-processor";
118
119
+const matchObject = {
120
+ width: 110,
121
+ height: 100,
122
+ orientation: "landscape",
123
+ aspect-ratio: 1.1,
124
+ type: "screen"
125
+}
126
+
127
process(styleObject, matchObject);
128
129
0 commit comments