From 480c442b340a338d5ece7da90663834c2c0a8c2d Mon Sep 17 00:00:00 2001 From: MattConflitti Date: Sat, 2 Mar 2019 13:59:02 -0500 Subject: [PATCH] Added logic necessary to allow for a custom close button control to be passed like prev and next --- src/ImageView.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ImageView.js b/src/ImageView.js index c7df90c..b8d93e9 100644 --- a/src/ImageView.js +++ b/src/ImageView.js @@ -567,6 +567,10 @@ export default class ImageView extends Component { controls.close = null; } + if (close) { + controls.close = close === true ? Close : close; + } + if (prev) { controls.prev = prev === true ? Prev : prev; }