gatsby-image
Advanced tools
Comparing version 1.0.19 to 1.0.20
@@ -277,3 +277,4 @@ "use strict"; | ||
onLoad: function onLoad() { | ||
return _this3.state.IOSupported && _this3.setState({ imgLoaded: true }); | ||
_this3.state.IOSupported && _this3.setState({ imgLoaded: true }); | ||
_this3.props.onLoad && _this3.props.onLoad(); | ||
} | ||
@@ -359,3 +360,4 @@ }) | ||
onLoad: function onLoad() { | ||
return _this3.setState({ imgLoaded: true }); | ||
_this3.setState({ imgLoaded: true }); | ||
_this3.props.onLoad && _this3.props.onLoad(); | ||
} | ||
@@ -390,5 +392,6 @@ }) | ||
position: _propTypes2.default.string, | ||
backgroundColor: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.bool]) | ||
backgroundColor: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.bool]), | ||
onLoad: _propTypes2.default.func | ||
}; | ||
exports.default = Image; |
{ | ||
"name": "gatsby-image", | ||
"version": "1.0.19", | ||
"version": "1.0.20", | ||
"description": "Lazy-loading React image component with optional support for the blur-up effect.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -179,2 +179,3 @@ # gatsby-image | ||
| `backgroundColor` | `string|bool` | Set a colored background placeholder. If true, uses "lightgray" for the color. You can also pass in any valid color string. | | ||
| `onLoad` | `func` | A callback that is called when the full-size image has loaded. | ||
@@ -181,0 +182,0 @@ ## Some other stuff to be aware of |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21781
339
184