diff --git a/packages/babel-plugin-transform-react-native-svg/src/index.ts b/packages/babel-plugin-transform-react-native-svg/src/index.ts index 6c217b88..41cd4301 100644 --- a/packages/babel-plugin-transform-react-native-svg/src/index.ts +++ b/packages/babel-plugin-transform-react-native-svg/src/index.ts @@ -79,7 +79,10 @@ const plugin = () => { const importDeclarationVisitor = { ImportDeclaration(path: NodePath, state: State) { - if (path.get('source').isStringLiteral({ value: 'react-native-svg' })) { + if ( + path.get('source').isStringLiteral({ value: 'react-native-svg' }) && + !path.get('importKind').hasNode() + ) { state.replacedComponents.forEach((component) => { if ( path