Skip to content

Commit eb77e3c

Browse files
authored
ExpandableOverlay - fix dialog props (#2675)
1 parent 2a2f962 commit eb77e3c

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

src/incubator/expandableOverlay/index.tsx

+22-8
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,29 @@ export interface RenderCustomOverlayProps extends ExpandableOverlayMethods {
1717
visible: boolean;
1818
}
1919

20+
export interface _DialogPropsOld {
21+
/**
22+
* The props to pass to the dialog expandable container
23+
*/
24+
dialogProps?: DialogPropsOld;
25+
migrateDialog?: false;
26+
}
27+
28+
export interface _DialogPropsNew {
29+
/**
30+
* The props to pass to the dialog expandable container
31+
*/
32+
dialogProps?: DialogPropsNew;
33+
/**
34+
* Migrate the Dialog to DialogNew (make sure you use only new props in dialogProps)
35+
*/
36+
migrateDialog: true;
37+
}
38+
39+
export type DialogProps = _DialogPropsOld | _DialogPropsNew;
40+
2041
export type ExpandableOverlayProps = TouchableOpacityProps &
42+
DialogProps &
2143
PropsWithChildren<{
2244
/**
2345
* The content to render inside the expandable modal/dialog
@@ -31,14 +53,6 @@ export type ExpandableOverlayProps = TouchableOpacityProps &
3153
* The props to pass to the modal expandable container
3254
*/
3355
modalProps?: ModalProps;
34-
/**
35-
* The props to pass to the dialog expandable container
36-
*/
37-
dialogProps?: DialogPropsOld | DialogPropsNew;
38-
/**
39-
* Migrate the Dialog to DialogNew (make sure you use only new props in dialogProps)
40-
*/
41-
migrateDialog?: boolean;
4256
/**
4357
* Whether to render a modal top bar (relevant only for modal)
4458
*/

0 commit comments

Comments
 (0)