surajitsarkar19 / react-native-radial-gradient

Radial gradient library for react native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Negative center coordinates are not working

githuboftigran opened this issue · comments

When I set center to center={[viewWidth/2, -200]} radial gradient is drown in the middle of my view.

Removing checks from GradientView::populateDefaultCenterValue and GradientView::drawGradient methods fixed the problem.
I'm sure removing checks in iOS classes will work too.
Please fix