Expose dispatchTrustedEvent and setEventInitTimeStamp in ReactNativePrivateInterface (#56417)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56417

Changelog: [internal]

The React Native renderer needs access to these internals to dispatch events under the new EventTarget-based event dispatching pipeline.

Reviewed By: javache

Differential Revision: D100462549

fbshipit-source-id: 0b4f9cb5900c6b48781a98edf431a6460d16709d
This commit is contained in:
Rubén Norte authored and meta-codesync[bot] committed 2026-04-13 03:55:39 -07:00
1 parent f0f6240d1e
commit 64d4d7c131
1 file changed
+10
@@ -9,6 +9,8 @@
*/
import typeof CustomEvent from '../../src/private/webapis/dom/events/CustomEvent';
import typeof {setEventInitTimeStamp} from '../../src/private/webapis/dom/events/internals/EventInternals';
import typeof {dispatchTrustedEvent} from '../../src/private/webapis/dom/events/internals/EventTargetInternals';
import typeof BatchedBridge from '../BatchedBridge/BatchedBridge';
import typeof legacySendAccessibilityEvent from '../Components/AccessibilityInfo/legacySendAccessibilityEvent';
import typeof TextInputState from '../Components/TextInput/TextInputState';
@@ -133,4 +135,12 @@ module.exports = {
return require('../ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance')
.getInternalInstanceHandleFromPublicInstance;
},
get dispatchTrustedEvent(): dispatchTrustedEvent {
return require('../../src/private/webapis/dom/events/internals/EventTargetInternals')
.dispatchTrustedEvent;
},
get setEventInitTimeStamp(): setEventInitTimeStamp {
return require('../../src/private/webapis/dom/events/internals/EventInternals')
.setEventInitTimeStamp;
},
};