Skip to content

Commit

Permalink
Improve nativewind example (#89)
Browse files Browse the repository at this point in the history
add a required babel plugin to make nativewind appear correctly in README.md
  • Loading branch information
the-simian authored Jun 6, 2024
1 parent 67a5705 commit f3388b6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,16 @@ module.exports = {
],
babelPresets: ['nativewind/babel'],
babelPresetReactOptions: { jsxImportSource: 'nativewind' },
babelPlugins: ['react-native-reanimated/plugin'],
babelPlugins: [
'react-native-reanimated/plugin',
[
'@babel/plugin-transform-react-jsx',
{
runtime: 'automatic',
importSource: 'nativewind',
},
],
],
},
},
],
Expand Down

0 comments on commit f3388b6

Please sign in to comment.