mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
988a23169a
Summary: Changelog: [Internal] While working on implementing [Event Timing API](https://www.w3.org/TR/event-timing/) I've noticed that there are multiple compiler warnings about unused lambda captures, which are coming from generated C++ code for EventEmitters. This modifies the codegen so that the corresponding lambda doesn't capture event variable if it's not used in the event handler, thus getting rid of warnings. Reviewed By: christophpurrer Differential Revision: D42281899 fbshipit-source-id: 98442bb9f3ce374755188d818a9b2d6a8050bf15