diff --git a/index.js b/index.js index 9b62c56..39f1f72 100644 --- a/index.js +++ b/index.js @@ -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 ? {children} : ); @@ -289,4 +289,4 @@ async function _saveCacheFile(url: string, success: Function, failure: Function) } catch (error) { failure && failure(error); } -} \ No newline at end of file +}