mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
119e8f4cd8
Summary: Refactor a code block that is duplicated 2x. Logic stays the same besides renaming, and a ternary operator to decide between getting the children from "old" or "new" tree. Tests can help us refactor knowing that the logic is still correct. Changelog: [Internal] Reviewed By: sammy-SC Differential Revision: D28018994 fbshipit-source-id: d34a033444e67091e44ff6a747fd39846c165238