mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
ea3495399b
commit
a65cd683ae
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user