Skip to content

Commit

Permalink
fix: typo/clean
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremybarbet committed Jan 28, 2020
1 parent c31bb4a commit 447352f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ export class Modalize<FlatListItem = any, SectionListItem = any> extends React.C
adjustToContentHeight,
alwaysOpen,
closeAnimationConfig,
dragToss = 0.05,
dragToss,
} = this.props;
const { timing } = closeAnimationConfig!;
const { lastSnap, modalHeight, overlay } = this.state;
Expand Down
11 changes: 6 additions & 5 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,6 @@ 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 Expand Up @@ -107,6 +102,12 @@ export interface IProps<FlatListItem = any, SectionListItem = any> {
*/
closeAnimationConfig?: IConfigProps;

/**
* A number that determines the momentum of the scroll required.
* @default 0.05
*/
dragToss: number;

/**
* Shrink the modal to your content's height.
* @default false
Expand Down

0 comments on commit 447352f

Please sign in to comment.