From 64952f60d7fc2ddfd7dd3e923f1ec7e9fd5eaea2 Mon Sep 17 00:00:00 2001 From: Mike Lambert Date: Tue, 25 Oct 2016 14:58:46 -0400 Subject: [PATCH] Allow passing image={{uri: 'http:...'}} These quality as objects, but are not React Components. So let them fall-through to use the normal code. --- mixins/WidgetMixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mixins/WidgetMixin.js b/mixins/WidgetMixin.js index 9face15..fbf39ba 100644 --- a/mixins/WidgetMixin.js +++ b/mixins/WidgetMixin.js @@ -225,7 +225,7 @@ module.exports = { /> ); } else if (hasImageProp) { - if (typeof this.props.image === 'object') { + if (typeof this.props.image === 'object' && this.props.image.isReactComponent) { return(this.props.image); }