mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-18 05:07:44 +08:00
Summary: This diff implements a new algorithm that effectively marks `EventEmitter`s enabled or disabled. The previous implementation relied on a list of mutation instructions whereas the new one analyzes the shadow trees. The mutations-based approach didn't work well because mutations describe `ShadowView`s whereas some `ShadowNode`s are simply not views (like VirtualText), but we have to enable/disable them anyway. Reviewed By: sahrens Differential Revision: D13642594 fbshipit-source-id: 12169e11d5685e50bcd0d8c410498c594df744b4