# @types/react-longpressable

> TypeScript definitions for react-longpressable

Latest version **1.1.3** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-longpressable
pnpm add @types/react-longpressable
yarn add @types/react-longpressable
bun add @types/react-longpressable
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.1.3 |
| Published | 2023-11-07 |
| First published | 2022-11-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51448 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-longpressable
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-longpressable
- npm.io page: https://npm.io/package/@types/react-longpressable

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 1.1.3 (latest) — 2023-11-07
- 1.1.0 (ts4.1) — 2022-11-26
- 1.1.2 — 2023-10-18
- 1.1.1 — 2023-09-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-longpressable/index.d.ts)
````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](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [VingeRay](https://github.com/vingeraycn).

---
_Source: https://npm.io/package/@types/react-longpressable · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
