Skip to content

Commit

Permalink
Merge pull request #1 from kenhkelly/no-activity-loader-onerror
Browse files Browse the repository at this point in the history
Add check on ActivityIndicator to remove the indicator if an error oc…
  • Loading branch information
kenhkelly authored Nov 1, 2017
2 parents e624501 + f8c0401 commit 6dca1e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ImageLoad extends React.Component {
style={[styles.viewImageStyles, { borderRadius: borderRadius }, backgroundColor ? { backgroundColor: backgroundColor } : {}]}
>
{
this.props.isShowActivity &&
(this.props.isShowActivity && !this.state.isError) &&
<ActivityIndicator
style={styles.activityIndicator}
size={loadingStyle ? loadingStyle.size : 'small'}
Expand Down

0 comments on commit 6dca1e2

Please sign in to comment.