mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
c4c0065b00
Summary: Add PressabilityPerformanceEventEmitter which allows product code / infrastructure to subscribe to touch-related performance events. Changelog: [Added][JS] Product/infra can subscribe to Pressability touch events for telemetry purposes Reviewed By: fkgozali Differential Revision: D27034835 fbshipit-source-id: e62811f641994b9eadb5cdd7391e806b6cce479a
19 lines
422 B
JavaScript
19 lines
422 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @flow strict-local
|
|
* @format
|
|
*/
|
|
|
|
export type PressabilityTouchSignal =
|
|
| 'DELAY'
|
|
| 'RESPONDER_GRANT'
|
|
| 'RESPONDER_RELEASE'
|
|
| 'RESPONDER_TERMINATED'
|
|
| 'ENTER_PRESS_RECT'
|
|
| 'LEAVE_PRESS_RECT'
|
|
| 'LONG_PRESS_DETECTED';
|