Skip to content

fix(Android): screen goes blank when going back on fabric#2465

Merged
alduzy merged 4 commits into
mainfrom
@alduzy/white-screen-when-going-back
Oct 30, 2024
Merged

fix(Android): screen goes blank when going back on fabric#2465
alduzy merged 4 commits into
mainfrom
@alduzy/white-screen-when-going-back

Conversation

@alduzy

@alduzy alduzy commented Oct 29, 2024

Copy link
Copy Markdown
Contributor

Description

This PR intents to fix current screen going blank on Android when returning to the previous one. The issue has been already fixed by #2134, but re-appeared recently. After a quick bisect it turned out that #2412 caused the regression. Bringing back the removed NativeScreensModule export fixes the issue.

Fixes #1685

Changes

  • added missing export
  • modified Test2282.tsx repro

Screenshots / GIFs

Before

Screen.Recording.2024-10-29.at.15.20.41.mov

After

Screen.Recording.2024-10-29.at.15.21.31.mov

Test code and steps to reproduce

  • use Test2282.tsx repro

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

@alduzy alduzy requested review from kkafar and maciekstosio October 29, 2024 14:35

@kkafar kkafar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, however I would like to avoid exporting the NativeScreensModule. @maciekstosio works on it in separate PR

@kkafar kkafar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It just came to my mind that we could do following 👇🏻 just temporarily, before we complete screen transition API migration by @maciekstosio.

I would be even fine to leave it this way. Its ugly - true, but it achieves all I want:

  1. We ensure the turbomodule is loaded
  2. We'll be able to remove it from public interface at any point w/o breaking change.

Comment thread src/index.tsx Outdated
Co-authored-by: Kacper Kafara <kacper.kafara@swmansion.com>
@alduzy alduzy requested a review from kkafar October 30, 2024 08:47

@kkafar kkafar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think we're good now

@alduzy alduzy merged commit 699c13e into main Oct 30, 2024
@alduzy alduzy deleted the @alduzy/white-screen-when-going-back branch October 30, 2024 09:41
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.

When I want to go to the previous page, everything suddenly disappears

2 participants