We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add types throughout the SwipeableFlatList and SwipeableRow. Probably also define/export them in a d.ts.
The text was updated successfully, but these errors were encountered:
Really easy to add types too. Just extend FlatListProps. Here's a working definition:
types/reactnative-swipeable-list/index.d.ts
/// <reference types="node" /> /// <reference types="react"/> /// <reference types="react-native"/> declare module 'react-native-swipeable-list' { import React from 'react'; import {FlatListProps} from 'react-native'; interface SwipeableFlatListProps<ItemT> extends FlatListProps<ItemT> { maxSwipeDistance?: number; shouldBounceOnMount?: boolean; renderQuickActions: ({index: number, item: ItemT}) => React.ReactNode; } class SwipeableFlatList<ItemT = any> extends React.Component< SwipeableFlatListProps<ItemT> > {} export = SwipeableFlatList; }
Sorry, something went wrong.
Thank you @thomashagstrom !! Would you like to open the PR?
No branches or pull requests
Add types throughout the SwipeableFlatList and SwipeableRow. Probably also define/export them in a d.ts.
The text was updated successfully, but these errors were encountered: