react-native-cached-image
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -107,3 +107,3 @@ 'use strict'; | ||
if (ImageCacheProvider.isCacheable(url)) { | ||
const options = _.pick(this.props, ['useQueryParamsInCacheKey']); | ||
const options = _.pick(this.props, ['useQueryParamsInCacheKey', 'cacheGroup']); | ||
// try to get the image path from cache | ||
@@ -110,0 +110,0 @@ ImageCacheProvider.getCachedImagePath(url, options) |
@@ -97,3 +97,7 @@ 'use strict'; | ||
.then(res => { | ||
resolve(toFile); | ||
if (Math.floor(res.statusCode / 100) == 2) { | ||
resolve(toFile); | ||
} else { | ||
return Promise.reject('Failed to successfully download image') | ||
} | ||
}) | ||
@@ -100,0 +104,0 @@ .catch(err => { |
{ | ||
"name": "react-native-cached-image", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "CachedImage component for react-native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
18110
350