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 useinnerRef
vsref
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)