Skip to content

Commit

Permalink
Adding TailWind configuration example (#85)
Browse files Browse the repository at this point in the history
* Adding tailwind configuration example

* fix: remove unneeded plugin

---------

Co-authored-by: Daniel Williams <[email protected]>
  • Loading branch information
kimchouard and dannyhw authored Feb 7, 2024
1 parent 82d49e4 commit 52b9fb5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,40 @@ module.exports = {
</td>
</tr>

<tr>
<td>nativewind</td>
<td>
<details>
<summary>
Click to here to see the config
</summary>
Nativewind requires some additional babel config to work correctly. You can see an example of this config below.

```js
module.exports = {
addons: [
/*existing addons,*/
{
name: '@storybook/addon-react-native-web',
options: {
modulesToTranspile: [
'react-native-reanimated',
'nativewind',
'react-native-css-interop',
],
babelPresets: ['nativewind/babel'],
babelPresetReactOptions: { jsxImportSource: 'nativewind' },
babelPlugins: ['react-native-reanimated/plugin'],
},
},
],
};
```

</details>
</td>
</tr>

</table>

## Adding support for static assets and svgs
Expand Down

0 comments on commit 52b9fb5

Please sign in to comment.