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

fix: use proper classes for bridgeless #5997

Merged
merged 3 commits into from May 14, 2024

Conversation

WoLewicki
Copy link
Member

@WoLewicki WoLewicki commented May 9, 2024

Summary

Thanks to @lukmccall we discovered that on bridgeless mode invoking getReactInstanceManager creates another instance of application. This PR makes it behave correctly there.

Test plan

Run application and see that without this code, on bridgeless, there is no additional button in dev menu since it is created and the button is added in another instance.

Copy link
Member

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

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

Can we do something to avoid duplicating whole NativeProxyCommon.java?

@WoLewicki
Copy link
Member Author

I can move this method only to a new file and make sourceSets from it. Do you want it?

@tomekzaw
Copy link
Member

Yes, please

@piaskowyk piaskowyk self-requested a review May 10, 2024 19:00
@WoLewicki
Copy link
Member Author

Done

Copy link
Member

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

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

better

@WoLewicki WoLewicki added this pull request to the merge queue May 14, 2024
Merged via the queue into main with commit 5cf6dfc May 14, 2024
9 of 13 checks passed
@WoLewicki WoLewicki deleted the @wolewicki/use-proper-react-host branch May 14, 2024 13:06
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.

None yet

3 participants