File tree 1 file changed +22
-8
lines changed
src/incubator/expandableOverlay
1 file changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,29 @@ export interface RenderCustomOverlayProps extends ExpandableOverlayMethods {
17
17
visible : boolean ;
18
18
}
19
19
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
+
20
41
export type ExpandableOverlayProps = TouchableOpacityProps &
42
+ DialogProps &
21
43
PropsWithChildren < {
22
44
/**
23
45
* The content to render inside the expandable modal/dialog
@@ -31,14 +53,6 @@ export type ExpandableOverlayProps = TouchableOpacityProps &
31
53
* The props to pass to the modal expandable container
32
54
*/
33
55
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 ;
42
56
/**
43
57
* Whether to render a modal top bar (relevant only for modal)
44
58
*/
You can’t perform that action at this time.
0 commit comments