879479119 / react-native-shadow

A SVG shadow component powered with react-native-svg,which can provide shadow on Android like iOS ^_^

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Calculation error in SVG Path

shubhangsati opened this issue · comments

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) 
image

commented

+1