Skip to content

Commit

Permalink
fix: remove unneeded plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyhw committed Feb 7, 2024
1 parent d060365 commit 7e344cd
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ module.exports = {
<summary>
Click to here to see the config
</summary>
Due to the reanimated dependency and the extra babel configuration needed, add the following
Nativewind requires some additional babel config to work correctly. You can see an example of this config below.

```js
module.exports = {
Expand All @@ -256,16 +256,7 @@ module.exports = {
],
babelPresets: ['nativewind/babel'],
babelPresetReactOptions: { jsxImportSource: 'nativewind' },
babelPlugins: [
'react-native-reanimated/plugin',
[
'@babel/plugin-transform-react-jsx',
{
runtime: 'automatic',
importSource: 'nativewind',
},
],
],
babelPlugins: ['react-native-reanimated/plugin'],
},
},
],
Expand Down

0 comments on commit 7e344cd

Please sign in to comment.