# @types/react-swipe

> TypeScript definitions for react-swipe

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

## Install

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

## 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 | 6.0.4 |
| Published | 2023-11-07 |
| First published | 2017-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51484 |
| Maintainers | types |

## Links

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

## Dependencies (2)

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

## Recent versions

- 6.0.4 (latest) — 2023-11-07
- 6.0.2 (ts3.7) — 2021-10-15
- 6.0.1 (ts3.6) — 2021-07-08
- 6.0.0 (ts2.8) — 2019-02-12
- 5.0.2 (ts2.6) — 2018-02-12
- 5.0.1 (ts2.3) — 2017-08-21
- 6.0.3 — 2023-10-18
- 5.0.3 — 2018-08-06
- 5.0.0 — 2017-07-05

## README

# Installation
> `npm install --save @types/react-swipe`

# Summary
This package contains type definitions for react-swipe (https://github.com/voronianski/react-swipe).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipe.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipe/index.d.ts)
````ts
/// <reference types="swipe" />

import * as React from "react";

declare class ReactSwipe extends React.Component<ReactSwipe.Props> {
    prev(): void;
    next(): void;
    getPos(): number;
    getNumSlides(): number;
    slide(index: number, duration: number): void;
}

declare namespace ReactSwipe {
    interface Style {
        container: React.CSSProperties;
        wrapper: React.CSSProperties;
        child: React.CSSProperties;
    }

    interface Props {
        children?: React.ReactNode;
        id?: string | undefined;
        swipeOptions?: SwipeOptions | undefined;
        childCount?: number | undefined;
        style?: Style | undefined;
        className?: string | undefined;
    }
}

export = ReactSwipe;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/swipe](https://npmjs.com/package/@types/swipe)

# Credits
These definitions were written by [Deividas Bakanas](https://github.com/DeividasBakanas), and [Ammar Alakkad](https://github.com/AAlakkad).

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