Skip to content

feat: allow closing image viewer by tapping outside the image#230

Open
favio102 wants to merge 1 commit intojobtoday:masterfrom
favio102:feature/close-on-tap-outside
Open

feat: allow closing image viewer by tapping outside the image#230
favio102 wants to merge 1 commit intojobtoday:masterfrom
favio102:feature/close-on-tap-outside

Conversation

@favio102
Copy link

Description:

This PR adds the ability to close the image viewer modal by tapping anywhere outside the displayed image. Previously, users could only close the modal by swiping up/down or tapping the close button. With this change, a tap on the backdrop (outside the image area) will also trigger the close action, improving usability and aligning with common modal behaviors.

Implemented a backdrop using TouchableOpacity to capture outside taps.
Ensured all existing features (swipe-to-close, zoom, header/footer) remain functional.
Tested on both iOS and Android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant