mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-24 04:25:27 +08:00
[add] Image style support for animations, interactions, and filters
This commit is contained in:
@@ -2,16 +2,20 @@
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import AnimationPropTypes from '../../modules/AnimationPropTypes';
|
||||
import BorderPropTypes from '../../modules/BorderPropTypes';
|
||||
import ColorPropType from '../ColorPropType';
|
||||
import ImageResizeMode from './ImageResizeMode';
|
||||
import InteractionPropTypes from '../../modules/InteractionPropTypes';
|
||||
import LayoutPropTypes from '../../modules/LayoutPropTypes';
|
||||
import ShadowPropTypes from '../../modules/ShadowPropTypes';
|
||||
import TransformPropTypes from '../../modules/TransformPropTypes';
|
||||
import { number, oneOf, string } from 'prop-types';
|
||||
|
||||
const ImageStylePropTypes = {
|
||||
...AnimationPropTypes,
|
||||
...BorderPropTypes,
|
||||
...InteractionPropTypes,
|
||||
...LayoutPropTypes,
|
||||
...ShadowPropTypes,
|
||||
...TransformPropTypes,
|
||||
@@ -26,7 +30,8 @@ const ImageStylePropTypes = {
|
||||
/**
|
||||
* @platform web
|
||||
*/
|
||||
boxShadow: string
|
||||
boxShadow: string,
|
||||
filter: string
|
||||
};
|
||||
|
||||
export default ImageStylePropTypes;
|
||||
|
||||
Reference in New Issue
Block a user