
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
@types/react-swipeable-views
Advanced tools
TypeScript definitions for react-swipeable-views
npm install --save @types/react-swipeable-views
This package contains type definitions for react-swipeable-views (https://github.com/oliviertassinari/react-swipeable-views).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-swipeable-views.
import * as React from "react";
export type OnChangeIndexCallback = (index: number, indexLatest: number) => void;
export type OnTransitionEndCallback = () => void;
export type OnSwitchingCallback = (index: number, type: OnSwitchingCallbackTypeDescriptor) => void;
export type OnSwitchingCallbackTypeDescriptor = "move" | "end";
export type AxisType = "x" | "x-reverse" | "y" | "y-reverse";
export interface Actions {
updateHeight: UpdateHeightAction;
}
export type ActionCallback = (actions: Actions) => void;
export type UpdateHeightAction = () => void;
export interface SpringConfig {
duration: string;
easeFunction: string;
delay: string;
}
export interface SwipeableViewsProps extends Omit<React.HTMLProps<HTMLDivElement>, "action" | "ref"> {
animateHeight?: boolean | undefined;
animateTransitions?: boolean | undefined;
axis?: AxisType | undefined;
containerStyle?: React.CSSProperties | undefined;
disabled?: boolean | undefined;
/*
* This is the config used to disable lazy loading, if true it will render all the views in first rendering.
*/
disableLazyLoading?: boolean | undefined;
enableMouseEvents?: boolean | undefined;
hysteresis?: number | undefined;
ignoreNativeScroll?: boolean | undefined;
index?: number | undefined;
onChangeIndex?: OnChangeIndexCallback | undefined;
onSwitching?: OnSwitchingCallback | undefined;
onTransitionEnd?: OnTransitionEndCallback | undefined;
resistance?: boolean | undefined;
style?: React.CSSProperties | undefined;
slideStyle?: React.CSSProperties | undefined;
springConfig?: SpringConfig | undefined;
slideClassName?: string | undefined;
threshold?: number | undefined;
action?: ActionCallback;
}
export interface SwipeableViewsState {
indexCurrent?: number | undefined;
indexLatest?: number | undefined;
isDragging?: boolean | undefined;
isFirstRender?: boolean | undefined;
heightLatest?: number | undefined;
displaySameSlide?: boolean | undefined;
}
export default class SwipeableViews extends React.Component<SwipeableViewsProps, SwipeableViewsState> {}
These definitions were written by Michael Ledin, and Deividas Bakanas.
FAQs
TypeScript definitions for react-swipeable-views
The npm package @types/react-swipeable-views receives a total of 80,764 weekly downloads. As such, @types/react-swipeable-views popularity was classified as popular.
We found that @types/react-swipeable-views demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.