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
I think Emotion should use StyleSheet.create instead of StyleSheet.flatten, even if this maybe affects performance (?) it is in my opinion the best solution, because StyleSheet.flatten only creates "inline styles" and StyleSheet.create create an instance which is referenced later.
And besides that, when someones uses React Native Web it is always better to use StyleSheet.create, because it creates atomic CSS classes while StyleSheet.flatten only creates inline styles...
Proposed solution
Switch to StyleSheet.create in primitives-core package.
Alternative solutions
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered:
The problem
I think Emotion should use
StyleSheet.create
instead ofStyleSheet.flatten
, even if this maybe affects performance (?) it is in my opinion the best solution, becauseStyleSheet.flatten
only creates "inline styles" andStyleSheet.create
create an instance which is referenced later.And besides that, when someones uses React Native Web it is always better to use
StyleSheet.create
, because it creates atomic CSS classes whileStyleSheet.flatten
only creates inline styles...Proposed solution
Switch to
StyleSheet.create
in primitives-core package.Alternative solutions
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: