From c6d12e2ee7ecb0dade6a759b66bbd6b485127bd4 Mon Sep 17 00:00:00 2001 From: Bogusz Kaszowski Date: Fri, 6 Mar 2026 15:53:15 +0100 Subject: [PATCH] Remove flexShrink: 1 from Session Replay SVG wrapper --- .../src/libraries/react-native-svg/index.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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(