Skip to content

Commit

Permalink
restore MOTION_PROP_NAMES
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed May 7, 2020
1 parent a1703a2 commit 11c18e5
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions src/CSSMotionList.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint react/prop-types: 0 */
import React from 'react';
import OriginCSSMotion, { MotionPropTypes } from './CSSMotion';
import OriginCSSMotion from './CSSMotion';
import { supportTransition } from './util/motion';
import {
STATUS_ADD,
Expand All @@ -11,7 +11,28 @@ import {
parseKeys,
} from './util/diff';

const MOTION_PROP_NAMES = Object.keys(MotionPropTypes);
const MOTION_PROP_NAMES = [
'eventProps',
'visible',
'children',
'motionName',
'motionAppear',
'motionEnter',
'motionLeave',
'motionLeaveImmediately',
'motionDeadline',
'removeOnLeave',
'leavedClassName',
'onAppearStart',
'onAppearActive',
'onAppearEnd',
'onEnterStart',
'onEnterActive',
'onEnterEnd',
'onLeaveStart',
'onLeaveActive',
'onLeaveEnd',
];

export function genCSSMotionList(transitionSupport, CSSMotion = OriginCSSMotion) {
class CSSMotionList extends React.Component {
Expand Down

0 comments on commit 11c18e5

Please sign in to comment.