Skip to content

fix: preserve Android EaseView visuals on drop and add example#47

Open
MeliValesca wants to merge 2 commits into
mainfrom
@melissa/fix/android-drop-preserve-easeview-visual-state
Open

fix: preserve Android EaseView visuals on drop and add example#47
MeliValesca wants to merge 2 commits into
mainfrom
@melissa/fix/android-drop-preserve-easeview-visual-state

Conversation

@MeliValesca

@MeliValesca MeliValesca commented Jun 11, 2026

Copy link
Copy Markdown
Member

Summary

Fixes an Android issue where EaseView backgrounds could disappear during react-native-screens / Expo Router screen transitions after a view was dropped.

The problem was that Android called full cleanup() from onDropViewInstance, which reset visual properties like background color, transforms, opacity, borders, and elevation while the outgoing native view could still be visible during the transition. The fix splits lifecycle cleanup so dropping a view stops animation work without clearing its last rendered visual state, while full reset still happens when the view is prepared for recycling.

Also adds an Issue #45 repro screen to the example app to manually verify animated background, style background, and active animation behavior during navigation transitions.

Test Plan

Reproduced the bug with the code given in this issue. #45

  • Verified the Issue [Android] Background color disappears on screen transition #45 repro manually on Android:
    • Opened IssuesIssue #45 — Android modal background
    • Opened the modal screen
    • Pressed back during the transition
    • Confirmed red animated background and green style background remain visible
    • Confirmed the active animation stops/freeze-frames during the close transition instead of disappearing or snapping/resetting
Screen.Recording.2026-06-11.at.4.13.23.PM.mov
  • Verified the same repro manually on iOS using the example app horizontal card transition.

  • Ran:

yarn format:check
yarn lint
yarn test --runInBand

All checks passed.

@MeliValesca MeliValesca self-assigned this Jun 11, 2026
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