mirror of
https://github.com/zhigang1992/nativewind.git
synced 2026-06-13 17:35:52 +08:00
fix: change babel imports to nativewind
This commit is contained in:
@@ -5,3 +5,4 @@ moti
|
||||
solito
|
||||
atrule
|
||||
nextjs
|
||||
nativewind
|
||||
|
||||
@@ -121,11 +121,7 @@ export default function rootVisitor(
|
||||
const bodyNode = path.node.body;
|
||||
|
||||
if (didTransform && !hasStyledComponentImport) {
|
||||
prependImports(
|
||||
bodyNode,
|
||||
["StyledComponent"],
|
||||
"tailwindcss-react-native"
|
||||
);
|
||||
prependImports(bodyNode, ["StyledComponent"], "nativewind");
|
||||
}
|
||||
|
||||
const { output } = extractStyles(extractStylesOptions);
|
||||
|
||||
Reference in New Issue
Block a user