styled-components v3.0.1 Release Notes

Release Date: 2018-01-22 // about 6 years ago
    • โž• Add support for SafeAreaView when using styled-components in a React Native project (see #1339)

    • โœ‚ Remove support for deprecated Navigator when using styled-components in a React Native project (see #1339)

    • ๐Ÿ’… Ship flat bundles for each possible entry, thanks to @Andarist (see #1362)

    • โž• Add ESLint precommit hook, thanks to @lukebelliveau (see #1393)

    • ๐Ÿ›  Fixed nested themes not being republished on outer theme changes, thanks to @Andarist (see #1382)

    • โž• Add warning if you've accidently imported 'styled-components' on React Native instead of 'styled-components/native', thanks to @tazsingh and @gribnoysup (see #1391 and #1394)

    • ๐Ÿ›  Fixed bug where innerRef could be passed as undefined to components when using withTheme. This could cause issues when using prop spread within the component (e.g. {...this.props}), because React will still warn you about using a non-dom prop even though it's undefined. (see #1414)

    • ๐Ÿ’… Expose isStyledComponent utility as a named export. This functionality is useful in some edge cases, such as knowing whether or not to use innerRef vs ref and detecting if a component class needs to be wrapped such that it can be used in a component selector. (see #1418)

    • โœ‚ Remove trailing commas on function arguments (not compatible with ES5 JS engines)

    • ๐Ÿ’… Ship source maps (see #1425)

    • ๐Ÿ’… Upgrade test suites to run against react v16 (see #1426)

    • ๐Ÿ’… Streaming rendering support (requires React 16, see #1430)