react-dimensions v2.0.0-alpha2 Release Notes
Release Date: 2016-10-24 // over 6 years ago-
➕ Added
- ➕ Added peer dependency for React 16
Previous changes from v2.0.0-alpha1
-
➕ Added
- ➕ Added a CHANGELOG.md
- 💥 Breaking: Measure the parent node rather than the wrapper. You will need to wrap this component in a
<div>
and style that. - 💥 Breaking: Removed
containerStyle
andcontainerClass
options - the wrapper<div>
is no longer used for calculating dimensions. - 💥 Breaking: Removed options
getWidth
andgetHeight
, replaced withgetDimensions
. This will allow replacing the current dimensions calculation with a single call togetBoundingClientRect()
, rather than two. Currently we are still usingelement.clientWidth
andelement.clientHeight
for dimension calculation.