Installation
npm install --save @types/react-longpressable
Summary
This package contains type definitions for react-longpressable (https://github.com/stardust66/react-longpressable#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-longpressable.
index.d.ts
import * as React from "react";
export interface LongPressProps {
onLongPress: (e: React.SyntheticEvent) => void;
onShortPress?: (e: React.SyntheticEvent) => void;
/**
* @default 500ms
*/
longPressTime?: number;
/**
* @default true
*/
primaryMouseButtonOnly?: boolean;
/**
* @default 100ms
*/
dragThreshold?: number;
children?: React.ReactNode;
}
export default class LongPress extends React.PureComponent<LongPressProps> {}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by VingeRay.