Rename addRootView -> startSurface in Fabric, and deprecate existing addRootView sites

Summary:
Deprecate addRootView, use startSurface consistently in Fabric.

Changelog: [Internal]

Reviewed By: mdvacca

Differential Revision: D26021147

fbshipit-source-id: e23b9294695609f766e382917ae1874fc8a1b27d
This commit is contained in:
Joshua Gross authored and Facebook GitHub Bot committed 2021-01-22 19:32:13 -08:00
1 parent 505f9fc749
commit e7783ff9ad
4 files changed
+16 -4

No files matched your search

@@ -436,6 +436,10 @@ public class UIManagerModule extends ReactContextBaseJavaModule
* Registers a new root view. JS can use the returned tag with manageChildren to add/remove
* children to this view.
*
* <p>Calling addRootView through UIManagerModule calls addRootView in the non-Fabric renderer,
* always. This is deprecated in favor of calling startSurface in Fabric, which must be done
* directly through the FabricUIManager.
*
* <p>Note that this must be called after getWidth()/getHeight() actually return something. See
* CatalystApplicationFragment as an example.
*