Support Touch and Mouse With a Single Component
Breaking Changes
Previous to v2.x, touch and mouse environments were supported by separate components. In v2.x touch and mouse are supported by a single component. To upgrade, change imports of ReactImageMagnifyTouch to the default export. Example:
Change:
import { ReactImageMagnifyTouch } from 'react-image-magnify';
To:
import ReactImageMagnify from 'react-image-magnify';
Release Notes
Support touch and mouse environments with a single export
Correct possible line on shaded lens
Upgrade dependencies
Support CJS, ES6, and UMD module types