styleShow
andstyleHide
are now deprecated in favor of the new lifecycle propsstart
,enter
,update
, andleave
unmountOnHide
has now been deprecated in favor of thestayMounted
prop. Its functionality is the boolean inverse ofunmountOnHide
preMount
is a new prop that allows the component to be mounted on first render regardless ofshow === false
- You can now use the
styleShow
andstyleHide
props to define more than just height styles for the show/hide state of your content. - When using the new
styleShow
andstyleHide
props,width
andheight
can be animated to their dynamic sizes by simply usingauto
as you would normally in css.
- The
minHeight
prop was deprecated in favor ofstyleShow
andstyleHide
. - The
height
prop was deprecated in favor ofstyleShow
andstyleHide
.
- You can now pass any valid react node as children to
ReactShow
, including raw text.
- Fixed an issue where the module was not being built before being publish
- When not animating, ReactShow is now sized to
auto
to more easily support nested ReactShow's and also behave more predictably. While this removes the built-in functionality of animating size changes as non ReactShow children enter and exit, this seems to be the majority use case. Enjoy!