While trying to add types for styles passed in to my react native components, I came across 2 ways to do it:
- use
ViewStyle
(orTextStyle
or others) directly - use
StyleProp<ViewStyle>
is there a difference in using one vs the other? For my minimal use cases, both seem to work alright.