From d125be181956bd26831e924f29d25e1da5c9efe1 Mon Sep 17 00:00:00 2001 From: Jakub Grzywacz Date: Thu, 21 Nov 2024 10:37:54 +0100 Subject: [PATCH] fix: getBBox size (#2549) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Summary When calling `getBBox` on rect, it will not give correct dimensions as `markers` that are 90% `CGRectZero` so CGRectUnion between some values and (0, 0, 0, 0) will return (0, 0, width, height) ## Test Plan ```tsx import React, { useRef } from 'react'; import { Button, View } from 'react-native'; import { Rect, Svg } from 'react-native-svg'; function App(): React.JSX.Element { const ref1 = useRef(null); return (