styled-components v5.3.0 Release Notes
Release Date: 2021-05-04 // almost 3 years ago-
💅 Pass
elementToBeCreated
as a third parameter toshouldForwardProp
so that the user-specified function can decide whether to pass through props based on whether the created element will be a tag or another component. (see #3436)🛠 Fix React Native components accepts function as style prop. (see #3389)
Previous changes from v5.2.2
-
💅 For React Native based components, pass
testID
down to the native component if specified for an easier time testing. (see #3365)💅 Enable users of the babel macro to customize the styled-components import with
importModuleName
(see #3422)[fix] COMPLEX_SELECTOR_PREFIX.includes wasn't transpiled (see #3397)