Files
react-native-web/src/propTypes/AnimationPropTypes.js
2017-01-01 19:48:50 -08:00

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;