Skip to content

Releases: xiaolin/react-image-gallery

v2.1.1

19 Feb 04:59

Choose a tag to compare

What's Changed

Full Changelog: v2.1.0...v2.1.1

v2.1.0 (CSS is no longer auto-injected)

16 Feb 18:39

Choose a tag to compare

Full Changelog: v2.0.8...v2.1.0

CSS is no longer auto-injected. You must now import the stylesheet explicitly:

import "react-image-gallery/styles/image-gallery.css";

This change fixes SSR compatibility (no more FOUC or duplicate styles) and reduces the JS bundle size by ~35%. The API, props, and all component behavior remain unchanged.

v2.0.8

10 Feb 20:22

Choose a tag to compare

Full Changelog: v2.0.7...v2.0.8

v2.0.7

07 Feb 07:57

Choose a tag to compare

Full Changelog: v2.0.6...v2.0.7

v2.0.6

05 Feb 03:08

Choose a tag to compare

Full Changelog: v2.0.5...v2.0.6

v2.0.5

01 Feb 20:01

Choose a tag to compare

Full Changelog: v2.0.4...v2.0.5

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';