mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-05-07 00:51:38 +08:00
17 lines
610 B
JavaScript
17 lines
610 B
JavaScript
import { PropTypes } from 'react';
|
|
|
|
const { number, oneOf, oneOfType, string } = PropTypes;
|
|
|
|
const AnimationPropTypes = process.env.NODE_ENV !== 'production' ? {
|
|
animationDelay: string,
|
|
animationDirection: oneOf([ 'alternate', 'alternate-reverse', 'normal', 'reverse' ]),
|
|
animationDuration: string,
|
|
animationFillMode: oneOf([ 'none', 'forwards', 'backwards', 'both' ]),
|
|
animationIterationCount: oneOfType([ number, oneOf([ 'infinite' ]) ]),
|
|
animationName: string,
|
|
animationPlayState: oneOf([ 'paused', 'running' ]),
|
|
animationTimingFunction: string
|
|
} : {};
|
|
|
|
module.exports = AnimationPropTypes;
|