Skip to content

Commit 56a4538

Browse files
elieteyssedoufacebook-github-bot
authored andcommitted
Update documentation for Modal's prop animationType
Summary: I was using Modal component and I didn't knew what was the default for animationType prop. After reading the code, I saw that it was `none`. I did not tell that the "default" is `slide` if animated is set to `true`, because it is not a default but an implementation of `animated` prop effect and because of the deprecation of `animated`. Thanks. Closes #13196 Differential Revision: D4795765 Pulled By: hramos fbshipit-source-id: 25d62ac7eeb20fc5557918c3d75709f44f5d4972
1 parent c311096 commit 56a4538

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Libraries/Modal/Modal.js

+2
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ class Modal extends React.Component {
8787
* - `slide` slides in from the bottom
8888
* - `fade` fades into view
8989
* - `none` appears without an animation
90+
*
91+
* Default is set to `none`.
9092
*/
9193
animationType: PropTypes.oneOf(['none', 'slide', 'fade']),
9294
/**

0 commit comments

Comments
 (0)