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
right now, colors method return either string or string[]. I found a case when using react-native-svg and want to use colors method for color props. I need to change the return type using as to make it fit with what color props are needed.
Problem
Temporary Solution
Solution
We need to add a generic type on colors method and use that generic type for the return type
The text was updated successfully, but these errors were encountered:
Background
right now,
colors
method return eitherstring
orstring[]
. I found a case when usingreact-native-svg
and want to usecolors
method forcolor
props. I need to change the return type usingas
to make it fit with whatcolor
props are needed.Problem
Temporary Solution
Solution
We need to add a generic type on
colors
method and use that generic type for the return typeThe text was updated successfully, but these errors were encountered: