Major Changes
-
95ea2839
#2014 Thanks @Andarist! - Functions are no longer accepted as values for thestyle
prop. This unifies the behavior with the web version of Emotion asstyle
's equivalent isclassName
prop and functions are not resolved for it. -
139ea336
#2060 Thanks @efoken! -StyleSheet.create
is used now under the hood. This means that when used in combination with React Native Web atomic class names are applied on components instead of inline styles. -
79036056
#967 Thanks @mitchellhamilton! - Use hooks internally for improved bundle size and a better tree in React DevTools -
95ea2839
#2014 Thanks @Andarist! - Updatedcss-to-react-native
dependency to the 3.x version - it comes with some breaking changes listed here.
Minor Changes
-
843bfb11
#1630 Thanks @Andarist! -@emotion/native
&@emotion/primitives
packages come with macros now. Both can be used as@emotion/native/macro
&@emotion/primitives/macro
respectively. -
456be9a6
#1634 Thanks @patsissons! - Added TypeScript type definitions. -
2d597857
#2058 Thanks @efoken! - Added support for theas
prop. -
f1b7c9d6
#1642 Thanks @Andarist! - Added basic support for accepting customshouldForwardProp
option.
Patch Changes
-
11fc27f8
#1750 Thanks @Zn4rK! - Match supported components to what is exported from the latest version of React Native (0.61.5). -
db16ac35
#2013 Thanks @Andarist! - Fixed an issue with styles being lost for nested factory calls like:const bgColor = color => css` background-color: ${color}; ` const Text = styled.Text` color: hotpink; ${({ backgroundColor }) => bgColor(backgroundColor)}; `
-
Updated dependencies [
95ea2839
,db16ac35
,95ea2839
,139ea336
,79036056
,2d597857
]:- @emotion/primitives-core@11.0.0