You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Libraries/Modal/Modal.js
+33-20Lines changed: 33 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@
6
6
*
7
7
* @format
8
8
* @flow
9
+
* @generate-docs
9
10
*/
10
11
11
12
'use strict';
@@ -45,19 +46,23 @@ export type Props = $ReadOnly<{|
45
46
- `fade` fades into view
46
47
- `none` appears without an animation
47
48
48
-
Default is set to `none`.
49
+
@defaultnone
49
50
*/
50
51
animationType?: ?('none'|'slide'|'fade'),
51
52
52
53
/**
53
-
The `presentationStyle` prop controls how the modal appears (generally on larger devices such as iPad or plus-sized iPhones). See https://developer.apple.com/reference/uikit/uimodalpresentationstyle for details.
54
+
The `presentationStyle` prop controls how the modal appears (generally on
55
+
larger devices such as iPad or plus-sized iPhones). See
56
+
https://developer.apple.com/reference/uikit/uimodalpresentationstyle for
57
+
details.
54
58
55
59
- `fullScreen` covers the screen completely
56
60
- `pageSheet` covers portrait-width view centered (only on larger devices)
57
61
- `formSheet` covers narrow-width view centered (only on larger devices)
58
62
- `overFullScreen` covers the screen completely, but allows transparency
59
63
60
-
Default is set to `overFullScreen` or `fullScreen` depending on `transparent` property.
64
+
Default is set to `overFullScreen` or `fullScreen` depending on
65
+
`transparent` property.
61
66
62
67
@platform ios
63
68
*/
@@ -69,20 +74,23 @@ export type Props = $ReadOnly<{|
69
74
),
70
75
71
76
/**
72
-
The `transparent` prop determines whether your modal will fill the entire view.
73
-
Setting this to `true` will render the modal over a transparent background.
77
+
The `transparent` prop determines whether your modal will fill the entire
78
+
view. Setting this to `true` will render the modal over a transparent
79
+
background.
74
80
*/
75
81
transparent?: ?boolean,
76
82
77
83
/**
78
-
The `statusBarTranslucent` prop determines whether your modal should go under the system statusbar.
84
+
The `statusBarTranslucent` prop determines whether your modal should go
85
+
under the system statusbar.
79
86
80
87
@platform android
81
88
*/
82
89
statusBarTranslucent?: ?boolean,
83
90
84
91
/**
85
-
The `hardwareAccelerated` prop controls whether to force hardware acceleration for the underlying window.
92
+
The `hardwareAccelerated` prop controls whether to force hardware
93
+
acceleration for the underlying window.
86
94
87
95
@platform android
88
96
*/
@@ -94,9 +102,10 @@ export type Props = $ReadOnly<{|
94
102
visible?: ?boolean,
95
103
96
104
/**
97
-
The `onRequestClose` callback is called when the user taps the hardware back button on Android
98
-
or the menu button on Apple TV. Because of this required prop, be aware that `BackHandler`
99
-
events will not be emitted as long as the modal is open.
105
+
The `onRequestClose` callback is called when the user taps the hardware back
106
+
button on Android or the menu button on Apple TV. Because of this required
107
+
prop, be aware that `BackHandler` events will not be emitted as long as the
0 commit comments