Native View Hierarchy Manager
Delegate of UIManagerModule that owns the native view hierarchy and mapping between native view names used in JS and corresponding instances of ViewManager. The communicates with this class by it's public interface methods:
- updateProperties
- updateLayout
- createView
- manageChildren
NB: All native view management methods listed above must be called from the UI thread.
The ReactContext instance that is passed to views that this manager creates differs from the one that we pass as a constructor. Instead we wrap the provided instance of in an instance of ThemedReactContext that additionally provide a correct theme based on the root view for a view tree that we attach newly created view to. Therefore this view manager will create a copy of ThemedReactContext that wraps the instance of for each root view added to the manager (see addRootView).
TODO(5483031): Only dispatch updates when shadow views have changed