mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49254 Changelog: [internal] This is just a convenience method to do: ``` Fantom.dispatchNativeEvent(node, 'click'); ``` Instead of: ``` runOnUIThread(() => { enqueueNativeEvent(node, 'click'); }); runWorkLoop(); ``` Which is too verbose and people rarely need this level of granularity in tests. Note that, in Fabric, we have methods called `dispatchEvent` that don't match 1:1 with this API. In that case, `dispatchEvent` is more aligned with Fantom's `enqueueNativeEvent`. Reviewed By: javache Differential Revision: D69302382 fbshipit-source-id: 6f71a5ace11c81f551df2c2837881dbc6f48e7ba