Skip to content

Commit 1e9db7b

Browse files
elicwhitefacebook-github-bot
authored andcommitted
Remove animated prop
Summary: This prop was deprecated in April 2016 in [this commit](2bb1c26#diff-931cea019b5e9faceffef4e46f1fff08), first in 0.26.0 It's been a while, we can remove it now. Changelog: [Breaking][General] Modal: Remove support for `aniamted` prop (deprecated in 0.26) Reviewed By: cpojer Differential Revision: D19762163 fbshipit-source-id: b6173bba066fc9ad0e786f56a946e2f3fa3d79cc
1 parent 4e6adc9 commit 1e9db7b

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

Libraries/Modal/Modal.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ export type Props = $ReadOnly<{|
120120
*/
121121
onDismiss?: ?() => mixed,
122122

123-
/**
124-
* Deprecated. Use the `animationType` prop instead.
125-
*/
126-
animated?: ?boolean,
127-
128123
/**
129124
* The `supportedOrientations` prop allows the modal to be rotated to any of the specified orientations.
130125
*
@@ -212,14 +207,7 @@ class Modal extends React.Component<Props> {
212207
backgroundColor: this.props.transparent ? 'transparent' : 'white',
213208
};
214209

215-
let animationType = this.props.animationType;
216-
if (!animationType) {
217-
// manually setting default prop here to keep support for the deprecated 'animated' prop
218-
animationType = 'none';
219-
if (this.props.animated) {
220-
animationType = 'slide';
221-
}
222-
}
210+
let animationType = this.props.animationType || 'none';
223211

224212
let presentationStyle = this.props.presentationStyle;
225213
if (!presentationStyle) {

0 commit comments

Comments
 (0)