Skip to content

Releases: benwiley4000/react-gif-player

v0.4.2

27 Jan 22:18
Compare
Choose a tag to compare

This release upgrades the build system to remove security vulnerabilities from older versions of webpack-dev-server.

v0.4.1

30 Mar 15:39
Compare
Choose a tag to compare

Fixes #22 where unknown props were no longer being passed down to the <img> tag (29aeab5).

v0.4.0

30 Mar 15:30
Compare
Choose a tag to compare

Added onTogglePlay prop which is called whenever the player changes state.

v0.3.1

14 Mar 19:19
Compare
Choose a tag to compare

Fixes autoplay not working (#20) (c218534)

v0.3.0

10 Mar 00:50
Compare
Choose a tag to compare

features

  • Implemented autoplay prop which should be true if you want the GIF to start playing on mount.
  • Implemented pauseRef prop - a function which receives a callback to remotely pause the GIF.

other

  • Using getDerivedStateFromProps instead of componentWillReceiveProps for React 16.3 / async rendering compatibility. Using polyfill for backward compatibility.

v0.2.3

26 Feb 14:01
Compare
Choose a tag to compare
  • You can now use any version of React 15 or 16
  • Switched to prop-types package (away from React.PropTypes) (thanks @nicubarbaros!)

v0.2.2

19 Feb 22:28
Compare
Choose a tag to compare

Code is identical to v0.2.1, though the "main" entry point specified in package.json has been corrected.

v0.2.1

25 Nov 03:43
Compare
Choose a tag to compare

A small patch extends auto-extraction of the first GIF frame as a still preview (previously enabled in v0.2.0) to images fetched from different domains. Previously a browser console error would indicate the operation is considered insecure.

v0.2.0

24 Nov 19:17
Compare
Choose a tag to compare

The significant feature update since 0.1.4 is that if no still prop is provided to the component, a hidden canvas element will be used to extract a data url pointing to the first frame from the gif, and that data url will be swapped in as the still option.

Note this swap will not occur until the GIF image has fully loaded (as of today, a partially-loaded GIF cannot be drawn to an HTML canvas unfortunately).

v0.1.4

31 Oct 06:32
Compare
Choose a tag to compare

Webkit mobile tap highlight (-webkit-tap-highlight-color) hidden (made transparent).