Skip to content

Commit

Permalink
Merge pull request #45 from MattConflitti/master
Browse files Browse the repository at this point in the history
Added logic necessary to allow for a custom close button control to b…
  • Loading branch information
antonKalinin committed Mar 11, 2019
2 parents e749999 + 480c442 commit 9780f93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ImageView.js
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,10 @@ export default class ImageView extends Component<PropsType, StateType> {
controls.close = null;
}

if (close) {
controls.close = close === true ? Close : close;
}

if (prev) {
controls.prev = prev === true ? Prev : prev;
}
Expand Down

0 comments on commit 9780f93

Please sign in to comment.