# @types/react-swipeable-views-core

> TypeScript definitions for react-swipeable-views-core

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

## Install

```sh
npm install @types/react-swipeable-views-core
pnpm add @types/react-swipeable-views-core
yarn add @types/react-swipeable-views-core
bun add @types/react-swipeable-views-core
```

## 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; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.13.3 |
| Published | 2023-11-07 |
| First published | 2020-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51440 |
| Maintainers | types |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.13.3 (latest) — 2023-11-07
- 0.13.0 (ts3.0) — 2020-05-19
- 0.13.2 — 2023-10-18
- 0.13.1 — 2023-09-27

## README

# Installation
> `npm install --save @types/react-swipeable-views-core`

# Summary
This package contains type definitions for react-swipeable-views-core (https://github.com/oliviertassinari/react-swipeable-views#readme).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views-core.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views-core/index.d.ts)
````ts
import { SwipeableViewsProps } from "react-swipeable-views";

export interface ComputeIndexParams {
    children: SwipeableViewsProps["children"];
    resistance: SwipeableViewsProps["resistance"];
    startIndex: number;
    startX: number;
    pageX: number;
    viewLength: number;
}

export const constant: {
    RESISTANCE_COEF: number;
    UNCERTAINTY_THRESHOLD: number;
};
export function mod(n: number, m: number): number;
export function getDisplaySameSlide(props: SwipeableViewsProps, nextProps: SwipeableViewsProps): boolean;
export function checkIndexBounds(props: SwipeableViewsProps): void;
export function computeIndex(
    params: ComputeIndexParams,
): {
    index: number;
    startX: number;
};

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 09:09:39 GMT
 * Dependencies: [@types/react-swipeable-views](https://npmjs.com/package/@types/react-swipeable-views)

# Credits
These definitions were written by [kodai3](https://github.com/kodai3).

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