Skip to content

Commit 6dca1e2

Browse files
authored
Merge pull request #1 from kenhkelly/no-activity-loader-onerror
Add check on ActivityIndicator to remove the indicator if an error oc…
2 parents e624501 + f8c0401 commit 6dca1e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ImageLoad extends React.Component {
5252
style={[styles.viewImageStyles, { borderRadius: borderRadius }, backgroundColor ? { backgroundColor: backgroundColor } : {}]}
5353
>
5454
{
55-
this.props.isShowActivity &&
55+
(this.props.isShowActivity && !this.state.isError) &&
5656
<ActivityIndicator
5757
style={styles.activityIndicator}
5858
size={loadingStyle ? loadingStyle.size : 'small'}

0 commit comments

Comments
 (0)