Skip to content

Commit

Permalink
Fixed an issue with resetting the image source that caused the image …
Browse files Browse the repository at this point in the history
…to not re-render
  • Loading branch information
ChristianTucker committed Feb 22, 2017
1 parent 325b18c commit a56a6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CachedImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const CachedImage = React.createClass({
}
const props = getImageProps(this.props);
const style = this.props.style || styles.image;
const source = this.state.cachedImagePath ? {
const source = (this.state.isCacheable && this.state.cachedImagePath) ? {
uri: 'file://' + this.state.cachedImagePath
} : this.props.source;
return this.props.renderImage({
Expand Down

0 comments on commit a56a6fc

Please sign in to comment.