/// <summary> /// Handles the creation of a view. /// </summary> /// <param name="node">The shadow node for the view.</param> /// <param name="rootViewTag">The react tag id of the root.</param> /// <param name="themedContext">The themed context.</param> /// <param name="initialProperties"> /// The initial properties for the view. /// </param> public void HandleCreateView( ReactShadowNode node, int rootViewTag, ThemedReactContext themedContext, ReactStylesDiffMap initialProperties) { #if DISABLE_NATIVE_VIEW_HIERARCHY_OPTIMIZER _uiViewOperationQueue.EnqueueCreateView( themedContext, node.ReactTag, node.ViewClass, initialProperties, rootViewTag); #else var isLayoutOnly = node.ViewClass == ViewProps.ViewClassName && IsLayoutOnlyAndCollapsible(initialProperties); node.IsLayoutOnly = isLayoutOnly; if (!isLayoutOnly) { _uiViewOperationQueue.EnqueueCreateView( themedContext, node.ReactTag, node.ViewClass, initialProperties, rootViewTag); } #endif }
/// <summary> /// Handles the creation of a view. /// </summary> /// <param name="node">The shadow node for the view.</param> /// <param name="themedContext">The themed context.</param> /// <param name="initialProperties"> /// The initial properties for the view. /// </param> public void HandleCreateView( ReactShadowNode node, ThemedReactContext themedContext, ReactStylesDiffMap initialProperties) { #if !ENABLED _uiViewOperationQueue.EnqueueCreateView( themedContext, node.ReactTag, node.ViewClass, initialProperties); #else var isLayoutOnly = node.ViewClass == ViewProps.ViewClassName && IsLayoutOnlyAndCollapsible(initialProperties); node.IsLayoutOnly = isLayoutOnly; if (!isLayoutOnly) { _uiViewOperationQueue.EnqueueCreateView( themedContext, node.ReactTag, node.ViewClass, initialProperties); } #endif }