react-native-progressive-image
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -18,2 +18,3 @@ import React, { Component, PropTypes } from 'react' | ||
}).start() | ||
this.props.onLoadThumbnail() | ||
} | ||
@@ -26,2 +27,3 @@ | ||
}).start() | ||
this.props.onLoadImage() | ||
} | ||
@@ -70,2 +72,4 @@ | ||
imageFadeDuration: PropTypes.number.isRequired, | ||
onLoadThumbnail: PropTypes.func.isRequired, | ||
onLoadImage: PropTypes.func.isRequired, | ||
thumbnailSource: PropTypes.object.isRequired, | ||
@@ -80,2 +84,4 @@ thumbnailFadeDuration: PropTypes.number.isRequired, | ||
thumbnailBlurRadius: 5, | ||
onLoadThumbnail: Function.prototype, | ||
onLoadImage: Function.prototype, | ||
} |
{ | ||
"name": "react-native-progressive-image", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Progressively load images. Loads a small thumbnail first. Includes fade and blur effects.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -35,1 +35,3 @@ # react-native-progressive-image | ||
| **`thumbnailFadeDuration`** | Fade-in duration for the thumbnail in ms. | `250` | | ||
| **`onLoadThumbnail`** | Callback function that gets called when the thumbnail is loaded. | `noop` | | ||
| **`onLoadImage`** | Callback function that gets called when the main image is loaded. | `noop` | |
76
37
5419
5