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

Create ReactFabric.stopSurface and use that for bridgeless mode binding #16164

Merged
merged 1 commit into from
Jan 10, 2020

Conversation

ejanzer
Copy link
Contributor

@ejanzer ejanzer commented Jul 19, 2019

For Fabric we want to rename unmountComponentAtNode to stopSurface to be consistent with startSurface. Because unmountComponentAtNode is called from native code (see ReactInstanceManager), we can't just delete it yet. Once this change syncs, I'll clean up usage of unmountComponentAtNode in native code, then I'll come back and remove it completely.

For more context, see facebook/react-native@3050581 (and additional discussion on D16273720 for fb employees). This PR also updates the binding I create in that diff for bridgeless mode to refer only to stopSurface.

@@ -23,6 +23,10 @@ if (__DEV__) {
ReactFabric = require('../implementations/ReactFabric-prod');
}

BatchedBridge.registerCallableModule('ReactFabric', ReactFabric);
if (global.RN$Bridgeless) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm assuming that this file gets synced over, too?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes.

@sizebot
Copy link

sizebot commented Jul 19, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS

@stale
Copy link

stale bot commented Jan 10, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution.

@stale stale bot added the Resolution: Stale Automatically closed due to inactivity label Jan 10, 2020
@bvaughn bvaughn merged commit d8570ec into facebook:master Jan 10, 2020
@bvaughn
Copy link
Contributor

bvaughn commented Jan 10, 2020

Whoops sorry for forgetting to actually merge this.

@ejanzer ejanzer deleted the fabric-stop-surface branch January 22, 2020 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Resolution: Stale Automatically closed due to inactivity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants