surajitsarkar19 / react-native-radial-gradient

Radial gradient library for react native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggestion: Add relative centering and radius

CiaranCurran opened this issue · comments

It would be much more convenient if the center and radius props also accepted relative arguments such as percentage values contained in strings. As can be done with a component's width and height.

e.g.

<RadialGradient
          ...
          center={['25%', '50%']}
          radius={'10%'}>