styled-components v5.3.0 Release Notes

Release Date: 2021-05-04 // 6 months ago
    • ๐Ÿ’… Pass elementToBeCreated as a third parameter to shouldForwardProp 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)