mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
306a8adade
Summary: The callback `dispatchEvent` is called asynchronously on the JavaScript thread, so all data it uses must be copied to the lambda. To work around this constraint we use a shared pointer for the counter. Changelog: [Internal] Fabric-specific internal change. Reviewed By: sammy-SC Differential Revision: D24598840 fbshipit-source-id: fb5581858d54dc806863caf0c7c4f612ed6046e2