Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev-launcher][Android] Fixed LogBox isn't working on the new architecture #28602

Merged
merged 2 commits into from
May 3, 2024

Conversation

lukmccall
Copy link
Contributor

Why

Closes ENG-12206.

How

It appears that the LogBox surface does not detach when the app reloads. This behavior is likely normal, but it causes issues with the developer menu. To address this, I have temporarily implemented a solution to detach the surface when the root view is destroyed.

I'll try to investigate what is a default for RN apps and why it doesn't work with the menu. However, for now, that fix should be enough.

Test Plan

  • new app with new architecture enable ✅

Copy link

linear bot commented May 3, 2024

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label May 3, 2024
@expo-bot
Copy link
Collaborator

expo-bot commented May 3, 2024

The Pull Request introduced fingerprint changes against the base commit: ae73d5b

Fingerprint diff
[
  {
    "type": "dir",
    "filePath": "../../packages/expo-dev-launcher",
    "reasons": [
      "expoAutolinkingIos",
      "expoAutolinkingAndroid"
    ],
    "hash": "0b359a1e901e9a05469fcf62f2687026359aaa72"
  }
]

Generated by PR labeler 🤖

Copy link
Contributor

@Kudo Kudo left a comment

Choose a reason for hiding this comment

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

could the issue relate to facebook/react-native#44393?

also if we want to customize something in our DevSupportManager, i would recommend to do it in DevLauncherBridgelessDevSupportManager than NonFinalBridgelessDevSupportManager. that would help the future react-native upgrade easier. (we would know which part is our customized and which part is just copied)

@lukmccall
Copy link
Contributor Author

could the issue relate to facebook/react-native#44393?

I think it's. Let me test that ;)
I'm still considering merging my PR as it is. I don't want to wait for Meta 😅
I agree that making changes within DevLauncherBridgelessDevSupportManager would be more correct, but since it's just a temporary fix, I don't think it's necessary. I'll probably revert that when your PR lands.

Co-authored-by: Expo Bot <34669131+expo-bot@users.noreply.github.com>
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels May 3, 2024
Copy link
Contributor

@Kudo Kudo left a comment

Choose a reason for hiding this comment

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

cool, let's keep it as-is. thanks for helping that.

@lukmccall lukmccall merged commit 19f392f into main May 3, 2024
12 checks passed
@lukmccall lukmccall deleted the @lukmccall/dev-launcher/fix-logbox branch May 3, 2024 14:29
@brentvatne brentvatne added the published Changes from the PR have been published to npm label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint changed bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants