react-native-image-placeholder
Advanced tools
Comparing version
@@ -36,3 +36,3 @@ import React from 'react'; | ||
const { | ||
style, source, resizeMode, borderRadius, children, | ||
style, source, resizeMode, borderRadius, backgroundColor, children, | ||
loadingStyle, placeholderSource, placeholderStyle, | ||
@@ -52,5 +52,7 @@ customImagePlaceholderDefaultStyle | ||
(this.state.isLoaded && !this.state.isError) ? children : | ||
<View style={[styles.viewImageStyles, { borderRadius: borderRadius }]}> | ||
<View | ||
style={[styles.viewImageStyles, { borderRadius: borderRadius }, backgroundColor ? { backgroundColor: backgroundColor } : {}]} | ||
> | ||
{ | ||
this.props.isShowActivity && | ||
(this.props.isShowActivity && !this.state.isError) && | ||
<ActivityIndicator | ||
@@ -57,0 +59,0 @@ style={styles.activityIndicator} |
{ | ||
"name": "react-native-image-placeholder", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "react native image placeholder", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
610171
0.02%106
1.92%