Skip to content

Releases: xiaolin/react-image-gallery

v2.0.5

01 Feb 20:01

Choose a tag to compare

v2.0.4

01 Feb 19:36

Choose a tag to compare

Full Changelog: v2.0.3...v2.0.4

Fixes thumbnail swiping and general swiping/transitions

01 Feb 06:04

Choose a tag to compare

Bullet limits and resize observer fix

01 Feb 00:51

Choose a tag to compare

  • Fixes issue with resize observer not repositioning thumbnail and bullets
  • Adds maxBullets prop to support limiting bullet dispaly

v2.0.0 - TypeScript Rewrite

31 Jan 17:29

Choose a tag to compare

v2.0.0 - TypeScript Rewrite

TLDR

Complete rewrite from JavaScript to TypeScript with modernized architecture, zero-config CSS, and improved touch/swipe handling.

✨ New Features

  • Zero-config CSS - Styles auto-inject on import, no separate CSS import needed
  • CSS custom properties - Easy theming via --ig-primary-color, --ig-thumbnail-size, etc.
  • TypeScript support - Full type definitions included out of the box

🔧 Improvements

  • Complete TypeScript rewrite - Entire codebase migrated from JS/JSX to TS/TSX
  • Hooks-based architecture - Refactored from class components to functional components with custom hooks
  • Better swipe handling - Improved touch gestures and thumbnail swiping
  • Smaller bundle - ~14KB gzipped (JS + CSS)

⚠️ Breaking Changes

  • Requires React 16.0.0+
  • Requires Node.js 18.18+
  • Removed SCSS source files (CSS only now)
  • Internal component structure changed (if you were importing internals)

📦 Migration

// Before (v1.x)
import ImageGallery from 'react-image-gallery';
import 'react-image-gallery/styles/css/image-gallery.css';

// After (v2.0) - CSS auto-injects!
import ImageGallery from 'react-image-gallery';

React 19 and esm support

11 Feb 02:46

Choose a tag to compare

1.3.0

30 Jul 08:29
3b36503

Choose a tag to compare

fixes #643
fixes #655

remove defaultprops from functional components

11 Jun 01:58

Choose a tag to compare

#730 removing defaultProps for upcoming deprecation

hotfix: v1.2.11 when thumbnails are disabled

03 Oct 05:16

Choose a tag to compare

Fixes issue when thumbnails are disabled #703

Fix thumbnail container resizing on react 18

01 Oct 22:09

Choose a tag to compare

Fixes thumbnail container resizing issue with react 18 render #674