Skip to content

Commit 8e22e11

Browse files
authored
DialogDismissibleView - refactor to function (#1170)
* DialogDismissibleView - refactor to function * Add displayName = 'IGNORE' * Rename counter --> dragsCounter * Rename swipe --> mutableSwipeDirections * Remove two return values * Update DialogDismissibleView.d.ts
1 parent 34453c0 commit 8e22e11

File tree

2 files changed

+170
-176
lines changed

2 files changed

+170
-176
lines changed

generatedTypes/components/dialog/DialogDismissibleView.d.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,15 @@ interface DialogDismissibleProps {
2424
*/
2525
visible?: boolean;
2626
}
27-
declare const _default: React.ComponentClass<DialogDismissibleProps, any>;
28-
export default _default;
27+
interface Props extends DialogDismissibleProps {
28+
children?: React.ReactNode | React.ReactNode[];
29+
}
30+
declare const DialogDismissibleView: {
31+
(props: Props): JSX.Element;
32+
displayName: string;
33+
defaultProps: {
34+
direction: PanningDirections;
35+
onDismiss: () => void;
36+
};
37+
};
38+
export default DialogDismissibleView;

0 commit comments

Comments
 (0)