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
Summary:
Related to facebook#8203 to update the Modal API reference doc.
**Test plan (required)**
Started up the website and checked:
http://localhost:8079/react-native/docs/modal.html

**Note, copied from a previous PR**
The code is not Flow-ified so depended on jsdoc formatting to get the method parameter types. There's a current issue with handling optional types via react-docgen which parses components. There's an open PR to look into this: reactjs/react-docgen#89. When that's resolved the `replaceAtIndex` method parameter type that's documented for `cb` needs to be updated to make it optional.
Closesfacebook#8375
Differential Revision: D3479536
Pulled By: caabernathy
fbshipit-source-id: de2db3aa221e4adce0c0c5f3d94a1fad528a60da
* The `transparent` prop determines whether your modal will fill the entire view. Setting this to `true` will render the modal over a transparent background.
93
+
*/
45
94
transparent: PropTypes.bool,
95
+
/**
96
+
* The `visible` prop determines whether your modal is visible.
97
+
*/
46
98
visible: PropTypes.bool,
99
+
/**
100
+
* The `onRequestClose` prop allows passing a function that will be called once the modal has been dismissed.
101
+
*
102
+
* _On the Android platform, this is a required function._
0 commit comments