Skip to content

Commit f3388b6

Browse files
authored
Improve nativewind example (#89)
add a required babel plugin to make nativewind appear correctly in README.md
1 parent 67a5705 commit f3388b6

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

+10-1
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,16 @@ module.exports = {
256256
],
257257
babelPresets: ['nativewind/babel'],
258258
babelPresetReactOptions: { jsxImportSource: 'nativewind' },
259-
babelPlugins: ['react-native-reanimated/plugin'],
259+
babelPlugins: [
260+
'react-native-reanimated/plugin',
261+
[
262+
'@babel/plugin-transform-react-jsx',
263+
{
264+
runtime: 'automatic',
265+
importSource: 'nativewind',
266+
},
267+
],
268+
],
260269
},
261270
},
262271
],

0 commit comments

Comments
 (0)