A framework for building native applications using React
Formalize event timestamps and propagate from host platform to JS (#55878)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/55878 Changelog: [General][Fixed] - Fix event timestamp propagation from host platforms to JS This adds event timestamps as a first class concept in Fabric during dispatch, and uses the new methods to dispatch events to pass the values from the host platform (Android and iOS). If the value isn't pass, the current timestamp at the time of dispatch is used (which is close enough). This fixes several problems: 1. Makes event timestamps account for native event dispatch delay. 2. Normalizes event timestamps across APIs (event timestamp property, Event Timing API information, etc.). NOTE: I had to implement clock correction on iOS because the timing we get from UITouch objects doesn't use the same clock as we do in C++. Reviewed By: javache, NickGerleman Differential Revision: D94669354 fbshipit-source-id: 945ce5dd2d2f44f2106e631854de40a109a6cb81
R
Rubén Norte committed
aa51746b87e5e04924e3fcfaf459f9bb1c9ca38e
Parent: 238bd24
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 3/4/2026, 6:15:59 PM