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
React Native and React does not have the exact same style properties. We want a way to style in a safe way.
Let's say the type for styles in React Native is
typeRNStyle={backgroundColor: string;border: string;borderRadius: number};// for the example, we suppose that in RN, we can only style backgroundColor, border and borderRadius
And in React
typeRStyle={border: string;borderRadius: string}
The resulting typed will intersect all the styles exported by the transformers:
typeStyle={border: string};// (backgroundColor is not in RStyle, and RN's borderRadius an R's borderRadius are incompatible
The text was updated successfully, but these errors were encountered:
arthur-fontaine
changed the title
Allow transformers to add their style type
Allow transformers to specify their style type
Apr 13, 2024
React Native and React does not have the exact same style properties. We want a way to style in a safe way.
Let's say the type for styles in React Native is
And in React
The resulting typed will intersect all the styles exported by the transformers:
The text was updated successfully, but these errors were encountered: