You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-9Lines changed: 19 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,7 @@ Add babel-plugin-macros to your `.babelrc` or `babel.config.js` and you're all s
107
107
108
108
### Using the `tw` prop
109
109
110
-
The best and easiest usage is to simply use the `tw` prop that is artificially added to all JSX elements. Under the hood, the macro removes the `tw` prop completely and instead applies or extends a `style` prop and also adds a web-only media id used by [react-native-media-query](https://github.com/kasinskas/react-native-media-query)to apply CSS-based media queries.
110
+
The best and easiest usage is to simply use the `tw` prop that is artificially added to all JSX elements. Under the hood, the macro removes the `tw` prop completely and instead applies or extends a `style` prop and also adds a web-only media id used to apply CSS-based media queries.
111
111
112
112
All you have to do is have _any_ import of react-native-tailwind.macro in your file, either `import "react-native-tailwind.macro"` or `import { /* whatever import you need */ } from "react-native-tailwind.macro"`.
113
113
@@ -314,7 +314,7 @@ Behind the scenes, `react-native-tailwind.macro` turns your _simple_ code from t
// Apply media id for CSS-based media queries using react-native-media-query
372
+
// Apply media id for CSS-based media queries
363
373
dataSet={{ media: tailwindStyles["a7gsbs"].id }}
364
374
/>
365
375
)
@@ -380,7 +390,7 @@ For more examples and use cases, check the [macro test snapshots](packages/react
380
390
381
391
-[tailwind-react-native-classnames](https://github.com/jaredh159/tailwind-react-native-classnames): Used for compiling Tailwind styles
382
392
383
-
-[react-native-media-query](https://github.com/kasinskas/react-native-media-query): Used for applying responsive styles with CSS media queries on the web
393
+
-[react-native-media-query](https://github.com/kasinskas/react-native-media-query): Provides the base implementation used to enable CSS media query support
384
394
385
395
-[twin.macro](https://github.com/ben-rogerson/twin.macro): Inspiration for writing a babel macro
0 commit comments