From 4e59f93daa2fbc694661647690fc101940d8f943 Mon Sep 17 00:00:00 2001 From: Mark Lawlor Date: Thu, 16 Jun 2022 16:35:18 +1000 Subject: [PATCH] fix: change babel imports to nativewind --- .cspell/project.txt | 1 + src/babel/root-visitor.ts | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.cspell/project.txt b/.cspell/project.txt index b553344..fe3efe4 100644 --- a/.cspell/project.txt +++ b/.cspell/project.txt @@ -5,3 +5,4 @@ moti solito atrule nextjs +nativewind diff --git a/src/babel/root-visitor.ts b/src/babel/root-visitor.ts index ca0847f..d957899 100644 --- a/src/babel/root-visitor.ts +++ b/src/babel/root-visitor.ts @@ -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);