Skip to content

Conversation

alduzy
Copy link
Contributor

@alduzy alduzy commented Oct 29, 2024

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 maciekstosio and kkafar October 29, 2024 14:35
Copy link
Member

@kkafar kkafar left a comment

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

Copy link
Member

@kkafar kkafar left a comment

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.

Co-authored-by: Kacper Kafara <kacper.kafara@swmansion.com>
@alduzy alduzy requested a review from kkafar October 30, 2024 08:47
Copy link
Member

@kkafar kkafar left a comment

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
3 checks passed
@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