Skip to content

Fixes Android preview broken state when pressing hardware back.#259

Open
KarthiKeyan05046 wants to merge 1 commit intoNitrogenZLab:mainfrom
KarthiKeyan05046:fix/android-preview-back-navigation
Open

Fixes Android preview broken state when pressing hardware back.#259
KarthiKeyan05046 wants to merge 1 commit intoNitrogenZLab:mainfrom
KarthiKeyan05046:fix/android-preview-back-navigation

Conversation

@KarthiKeyan05046
Copy link

Problem:
When using startFragmentPreview, pressing Android hardware back while in full-screen preview
causes React Navigation to navigate back, but the native preview overlay remains visible.

Solution:
Replace startFragmentPreview with startActivityPreview to isolate preview in its own Activity.

Closes #254

…erly handle hardware back navigation

When using startFragmentPreview, pressing Android hardware back while in preview
causes React Navigation to pop the screen while native preview fragment remains open,
leading to broken UI state.

Using startActivityPreview isolates preview in its own Activity and fixes the issue.
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.

Android hardware back button does not close image preview screen properly

1 participant