mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
85696298bf
Summary: Changelog: [internal] # Problem We have node A with N children. Calling cloning constructor on `YogaLayoutableShadowNode` causes new `yogaNode_` to be created. However if `fragment.children` is nil in cloning constructor, which basically says children were not changed, then the existing children's `owner` becomes invalid. # Solution In the clone constructor, always call `updateYogaChildren`. This updates yoga children with the new `owner`. Reviewed By: JoshuaGross Differential Revision: D20139582 fbshipit-source-id: 3932694d4381b601df07dd8a57887ce7c09f1582