Dialog Root View Group
DialogRootViewGroup is the ViewGroup which contains all the children of a Modal. It gets all child information forwarded from ReactModalHostView and uses that to create children. It is also responsible for acting as a RootView and handling touch events. It does this the same way as ReactRootView.
To get layout to work properly, we need to layout all the elements within the Modal as if they can fill the entire window. To do that, we need to explicitly set the styleWidth and styleHeight on the LayoutShadowNode to be the window size. This is done through the UIManagerModule, and will then cause the children to layout as if they can fill the window.
Properties
Get the overflow inset rect values which indicate the extensions to the boundaries of current view that wraps all of its children views
The PointerEvents of the View.
Sets property removeClippedSubviews
as a result of property update in JS. Should be called only from ViewManager.updateView method.
Functions
Get rectangular bounds to which view is currently clipped to. Called only on views that has set removeCLippedSubviews
property value to true
.
Determine the index of a child view at index considering z-index.
Called when a child ends a native gesture. Should be called from the child's onTouchIntercepted implementation.
Called when a child starts a native gesture (e.g. a scroll in a ScrollView). Should be called from the child's onTouchIntercepted implementation.
See the documentation of needsOffscreenAlphaCompositing in View.js.
A ViewGroup instance that implement this interface is responsible for storing the listener passed as an argument and then calling OnInterceptTouchEventListener#onInterceptTouchEvent from ViewGroup#onInterceptTouchEvent and returning the result. If some custom handling of this method apply for the view, it should be called after the listener returns and only in a case when it returns false.
Set the overflow inset rect values which indicate the extensions to the boundaries of current view that wraps all of its children views
Notify view that clipping area may have changed and it should recalculate the list of children that should be attached/detached. This method should be called only when property removeClippedSubviews
is set to true
on a view.
Redraw the view based on updated child z-index. This should be called after updating one of its child z-index.