diff --git a/packages/react-native-babel-plugin/src/libraries/react-native-svg/index.ts b/packages/react-native-babel-plugin/src/libraries/react-native-svg/index.ts index 325f9f2d9..1d3fed1ab 100644 --- a/packages/react-native-babel-plugin/src/libraries/react-native-svg/index.ts +++ b/packages/react-native-babel-plugin/src/libraries/react-native-svg/index.ts @@ -315,7 +315,6 @@ export class ReactNativeSVG { * width, * height * }} - * style={{ flexShrink: 1 }} * > * {originalElement} * @@ -345,18 +344,6 @@ export class ReactNativeSVG { __wrappedForSR: true }; - const styleProp = t.jsxAttribute( - t.jsxIdentifier('style'), - t.jsxExpressionContainer( - t.objectExpression([ - t.objectProperty( - t.identifier('flexShrink'), - t.numericLiteral(1) - ) - ]) - ) - ); - const props = [ t.objectProperty(t.identifier('type'), t.stringLiteral('svg')), t.objectProperty(t.identifier('hash'), t.stringLiteral(hash)) @@ -394,8 +381,7 @@ export class ReactNativeSVG { t.jsxIdentifier('pointerEvents'), t.stringLiteral('box-none') ), - attributeProp, - styleProp + attributeProp ]; const viewWrapper = t.jsxElement(