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
Minor but the prop and handling of style should be style?: StyleProp<ViewStyle> | undefined
This allows the style to be an array like other RN Views.
We can spread the style into a new object each render but this is less efficient as React caches static styles so style={[staticStyles, { ...dynamicStyles... }] is more efficient than spreading and the static styles don't need to get sent over the JS->Native bridge every time.
The text was updated successfully, but these errors were encountered:
Describe the bug
Minor but the prop and handling of style should be
style?: StyleProp<ViewStyle> | undefined
This allows the style to be an array like other RN Views.
We can spread the style into a new object each render but this is less efficient as React caches static styles so
style={[staticStyles, { ...dynamicStyles... }]
is more efficient than spreading and the static styles don't need to get sent over the JS->Native bridge every time.The text was updated successfully, but these errors were encountered: