mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
dce1863bf9
Summary: Changelog: [internal] Fixes an inconsistency that `AttributedStringBox` can get into. Example of inconsitency: After `AttributedStringBox` is moved (move constructor or move assignment operator), moved from `AttributedStringBox` needs to be set into blank state. Its mode needs to be `Value`, `opaquePointer_` should be nullptr and `value_` empty AttributedString. This was not the case before as the default move constructor and operator would leave `mode_` as `OpaquePointer` but ivar representing opaquePointer would be nullptr. Reviewed By: JoshuaGross Differential Revision: D26168142 fbshipit-source-id: eed2a7c3a165ae5e1f269822c12042c6ccbd3388