Skip to content

Commit

Permalink
Merge pull request #6 from neoswallow/patch-1
Browse files Browse the repository at this point in the history
Update index.js for possible crash with RN 0.59.9
  • Loading branch information
wonday authored Jul 13, 2019
2 parents ce9f991 + ec47b33 commit a7b7cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export default class CachedImage extends Component {

if (this.state.source) {

const renderImage = (props, children) => (children ?
const renderImage = (props, children) => (children != null ?
<ImageBackground {...props}>{children}</ImageBackground> :
<Image {...props}/>);

Expand Down Expand Up @@ -289,4 +289,4 @@ async function _saveCacheFile(url: string, success: Function, failure: Function)
} catch (error) {
failure && failure(error);
}
}
}

0 comments on commit a7b7cee

Please sign in to comment.