react-compare-image v2.0.0 Release Notes

Release Date: 2019-10-20 // almost 3 years ago
  • ๐Ÿ’ฅ Breaking Changes

    • Container's aspect ratio decision logic has changed.
      • With previous versions(version 0, 1), When displaying two images with different aspect ratios, container's aspect ratio was determined by the aspect retio of the right side image
      • From version 2, container size will be determined by taller image's aspect ratio.
      • You can change this behavior by setting aspectRatio props to 'taller' or 'wider'.
      • 'taller' means:
      • the taller image when the images are displayed with the same width.
      • 'wider' means:
      • the shorter image when the images are displayed with the same width.
      • In other words, the wider image when the images are displayed with the same height.

    ๐Ÿ†• New Features

    • โž• Add vertical comparison feature. use the 'vertical' prop.
    • Hide labels properly.