You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation strictly uses start and end, but react-native-linear-gradient already supports angle usage.
Proposed Solution or API
Add support for useAngle, angle and angleCenter props in linearGradient style configuration. Since lgrad isn't typed anyway, we could just extract those props from it and pass it to LinearGradient:
Description
react-native-linear-gradient
supports passing an angle instead of start and end positions to calculate gradients. The current integration ofLinearGradient
inside NativeBase does not support that.Problem Statement
The current implementation strictly uses
start
andend
, butreact-native-linear-gradient
already supports angle usage.Proposed Solution or API
Add support for
useAngle
,angle
andangleCenter
props inlinearGradient
style configuration. Sincelgrad
isn't typed anyway, we could just extract those props from it and pass it toLinearGradient
:This can be much cleaner, but that's the gist of this request.
Alternatives
No response
Additional Information
I don't know how to handle older versions where the angle props aren't supported
The text was updated successfully, but these errors were encountered: