Align View creation flow between Fabric and non-Fabric

Summary:
Ship responsibility for most View creation logic to ViewManager, where it already largely lies, and simplify code in Fabric and non-Fabric mounting layers.

Notably, some of this work was *already* being duplicated so we can expect an extremely tiny perf gain here.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D26742711

fbshipit-source-id: 4213766d4cd366bc69cd47d4654f7b269bb9e7f4
This commit is contained in:
Joshua Gross
2021-03-04 22:22:34 -08:00
committed by Facebook GitHub Bot
parent ea3495399b
commit a65cd683ae
3 changed files with 5 additions and 10 deletions
@@ -498,7 +498,6 @@ public class SurfaceMountingManager {
view =
viewManager.createView(
reactTag, mThemedReactContext, propsDiffMap, stateWrapper, mJSResponderHandler);
view.setId(reactTag);
}
ViewState viewState = new ViewState(reactTag, view, viewManager);