mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 22:58:19 +00:00
Summary: Consider this: * ParagraphShadowNode retains LocalData, * LocalData contains AttributedString, * AttributedString contains Fragments, * Fragment can contain a pointer to parent shadow node, so it can be the ParagraphShadowNode. In this case it's a retain cycle. We actually don't need to store pointers to not TextShadowNodes, so we don't now. Later, after we fully migrate to ShadowView, we can remove this condition because it will become harmless. Reviewed By: sahrens Differential Revision: D13196885 fbshipit-source-id: d386ce0a067df0a72e6619d62d56038aaf80eccb