mirror of
https://github.com/react/react-native.git
synced 2026-11-02 20:09:01 +08:00
Summary: This is the most straightforward fix for the double detach issue. If a view is not attached, then addViewInLayout never propagates onAttach, and adding through attachViewToParent is a no op. We could hack something in to attach clipped FlatViewGroups in onClippingRect, but any other view that relies on onAttachedToWindow will have similar issues. Reviewed By: ahmedre Differential Revision: D3560565