Skip to content

Commit db9cb0e

Browse files
committed
update example
1 parent 8e84d8b commit db9cb0e

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ transform(styles, { parseMediaQueries: true });
8080
↓ ↓ ↓ ↓ ↓ ↓
8181

8282
```js
83-
{
83+
const styleObject = {
8484
__mediaQueries: {
8585
"@media (min-width: 50px) and (max-width: 150px)": [
8686
{
@@ -108,14 +108,22 @@ transform(styles, { parseMediaQueries: true });
108108
fontSize: 32
109109
}
110110
}
111-
}
111+
};
112112
```
113113

114114
↓ ↓ ↓ ↓ ↓ ↓
115115

116116
```js
117117
import { process } from "react-native-css-media-query-processor";
118118

119+
const matchObject = {
120+
width: 110,
121+
height: 100,
122+
orientation: "landscape",
123+
aspect-ratio: 1.1,
124+
type: "screen"
125+
}
126+
119127
process(styleObject, matchObject);
120128
```
121129

0 commit comments

Comments
 (0)