mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-15 22:31:42 +08:00
Summary: With recent changes, simple cloning a component does not mean that underlying Yoga node will be dirtied. Autodirtying is only performed if the child nodes were dirtied and/or if the YGStyles were changed. That's not the case for Text component which does not have direct layotable children, so we have to call `dirtyLayout` explicitly. Reviewed By: JoshuaGross Differential Revision: D14508277 fbshipit-source-id: 2c52d7d40da963a976c7d28a13781cc1755ef591