-
Is there a specific reason for the current order of elements in the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The babel config mimics how the library will work in an app after being published. By default the library is compiled for better compatibility with various tools. However, nativewind needs uncompiled JSX, so the compiled code won't work with nativewind. You see the same behavior in the example app. If you want the library to be uncompiled, you'd need to use the |
Beta Was this translation helpful? Give feedback.
Thank you for your reply. I solved this problem by making some kind of wrapper over babel-preset and getConfig to exclude @babel/preset-react.
babel-preset.js
babel-config.js