Skip to content

Commit d237759

Browse files
committed
Add notice about syntax validation [ci skip]
1 parent 85c8218 commit d237759

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ yarn add react-native-css-media-query-processor --dev
2525

2626
You can use this library together with [css-to-react-native-transform](https://github.com/kristerkari/css-to-react-native-transform) to transform a string of CSS containing media queries to an React Native style object.
2727

28+
Notice that there is no syntax validation for CSS media queries. This is done to ensure that the media query matching is as fast as possible. If you want to validate the media queries, you should do that when they are parsed to style objects (that's what [css-to-react-native-transform](https://github.com/kristerkari/css-to-react-native-transform) does).
29+
2830
Given that React Native returns the following dimensions:
2931

3032
```js

0 commit comments

Comments
 (0)