Skip to content

Android hardware back button does not close image preview screen properly #254

@KarthiKeyan05046

Description

@KarthiKeyan05046

When viewing a selected image in the full-screen preview (inside the picker flow or via openPreview), pressing the built-in back button in the preview UI closes the preview correctly and returns to the picker grid.
However, when pressing the device hardware back button (or BackHandler in React Native) while in the preview screen, the app navigates back to the previous screen (as handled by React Navigation / BackHandler), but the native preview modal/activity remains open on top, resulting in a broken UI state (preview overlay stays visible over the previous screen).
This only happens on Android (tested on release build). iOS behavior is fine as it uses native navigation controllers.

Android.hardware.back.button.does.not.close.image.preview.screen.properly.mov

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions