mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7796b7e9af
Summary: `StateTarget` no longer uses `shared_from_this`, this allows us to remove need for `enable_shared_from_this` I decided to put `state->commit` call inside `ShadowTree.cpp` because I needed to have access to `shared_ptr` of shadow node from outside of the class itself. `state->commit` was originally designed to be only called by `ShadowNode` but this does not seem to be the case anymore since it is called from `UIManager` as well. changelog: [internal] Reviewed By: shergin Differential Revision: D18032532 fbshipit-source-id: 75c874fd04f86adc07bfddbef3a0384e17c2067b