main
js 21 lines 671 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8 import SyntheticEvent from './SyntheticEvent';
9
10 /**
11 * `touchHistory` isn't actually on the native event, but putting it in the
12 * interface will ensure that it is cleaned up when pooled/destroyed. The
13 * `ResponderEventPlugin` will populate it appropriately.
14 */
15 const ResponderSyntheticEvent = SyntheticEvent.extend({
16 touchHistory: function (nativeEvent) {
17 return null; // Actually doesn't even look at the native event.
18 },
19 });
20
21 export default ResponderSyntheticEvent;