1
1
import _ from 'lodash' ;
2
2
import React , { Component } from 'react' ;
3
- import { StyleSheet , Modal as RNModal , ModalProps as RNModalProps , TouchableWithoutFeedback , GestureResponderEvent } from 'react-native' ;
3
+ import {
4
+ StyleSheet ,
5
+ Modal as RNModal ,
6
+ ModalProps as RNModalProps ,
7
+ TouchableWithoutFeedback ,
8
+ GestureResponderEvent
9
+ } from 'react-native' ;
4
10
import { BlurViewPackage } from '../../optionalDependencies' ;
5
11
import { Constants } from '../../helpers' ;
6
12
import { asBaseComponent } from '../../commons/new' ;
@@ -11,31 +17,31 @@ const BlurView = BlurViewPackage?.BlurView;
11
17
12
18
export { ModalTopBarProps } ;
13
19
export interface ModalProps extends RNModalProps {
14
- /**
15
- * Blurs the modal background when transparent (iOS only)
16
- */
17
- enableModalBlur ?: boolean ;
18
- /**
19
- * A custom view to use as a BlueView instead of the default one
20
- */
21
- blurView ?: JSX . Element ;
22
- /**
23
- * allow dismissing a modal when clicking on its background
24
- */
25
- onBackgroundPress ?: ( event : GestureResponderEvent ) => void ;
26
- /**
27
- * the background color of the overlay
28
- */
29
- overlayBackgroundColor ?: string ;
30
- /**
31
- * The modal's end-to-end test identifier
32
- */
33
- testID ?: string ;
34
- /**
35
- * Overrides the text that's read by the screen reader when the user interacts with the element. By default, the
36
- * label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
37
- */
38
- accessibilityLabel ?: string ;
20
+ /**
21
+ * Blurs the modal background when transparent (iOS only)
22
+ */
23
+ enableModalBlur ?: boolean ;
24
+ /**
25
+ * A custom view to use as a BlueView instead of the default one
26
+ */
27
+ blurView ?: JSX . Element ;
28
+ /**
29
+ * allow dismissing a modal when clicking on its background
30
+ */
31
+ onBackgroundPress ?: ( event : GestureResponderEvent ) => void ;
32
+ /**
33
+ * the background color of the overlay
34
+ */
35
+ overlayBackgroundColor ?: string ;
36
+ /**
37
+ * The modal's end-to-end test identifier
38
+ */
39
+ testID ?: string ;
40
+ /**
41
+ * Overrides the text that's read by the screen reader when the user interacts with the element. By default, the
42
+ * label is constructed by traversing all the children and accumulating all the Text nodes separated by space.
43
+ */
44
+ accessibilityLabel ?: string ;
39
45
}
40
46
41
47
/**
0 commit comments