Use custom props in theme variants #229
Unanswered
i-in-range
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use @expo/vector-icons library. Its components has prop
size
. Theme is the good place to place this prop to, becauce of conveniense of managing of responsive values here. But I'm getting standatd error "TypeError: funcsMap[propKey] is not a function... ", because propsize
is unavailable in the theme. It is not a resident of theStyleSheet.create
object.Yes, I can use maybe
width
prop and reassign its value as Icon component needs. But this approach seems enough messy for me. Have you got any idea, how to manage custom props in the theme?Beta Was this translation helpful? Give feedback.
All reactions