react-native-shadow
react-native-shadow copied to clipboard
Calculation error in SVG Path
In BoxShadow, rectHeight
is calculated as height - radius * 2
and rectWidth
is calculated as width - radius * 2
.
These values can be negative for views with dynamic height. There should be a check for negative values before prefixing a -
to a negative number (notice the double --
in the image below)
+1