Skip to content

Commit

Permalink
fix: added-typescript-definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bcpugh committed Jan 27, 2020
1 parent e3e8b55 commit eb1b448
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export class Modalize<FlatListItem = any, SectionListItem = any> extends React.C
closeAnimationConfig: {
timing: { duration: 280, easing: Easing.ease },
},
dragToss: 0.05,
};

private snaps: number[] = [];
Expand Down
5 changes: 5 additions & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ export interface IProps<FlatListItem = any, SectionListItem = any> {
*/
children?: React.ReactNode;

/**
* A number that determines the determines the momentum of the scroll required.
*/
dragToss?: number;

/**
* A number that will enable the snapping feature and create an intermediate point before opening the modal to full screen.
*/
Expand Down

0 comments on commit eb1b448

Please sign in to comment.