UNPKG

swipe-list-sdk

Version:

Shared SwipeList React SDK

18 lines 479 B
import React from 'react'; export interface DeckItem { id: string; title: string; overview: string; posterUrl: string; } export interface SwipeListProps { deck: DeckItem[]; onAdd(item: DeckItem): void; onDismiss(item: DeckItem): void; cardSize?: { width: number; height: number; }; } export declare function SwipeList({ deck, onAdd, onDismiss, cardSize }: SwipeListProps): React.JSX.Element; //# sourceMappingURL=index.d.ts.map