flow import BorderPropTypes from '../../modules/BorderPropTypes' ; import ColorPropType from '../ColorPropType' ; import LayoutPropTypes from '../../modules/LayoutPropTypes' ; import TransformPropTypes from '../../modules/TransformPropTypes' ; import { number , oneOf , oneOfType , string } from 'prop-types' ; const stringOrNumber = oneOfType ( [ string , number ] ) ; const overscrollBehaviorType = oneOf ( [ 'auto' , 'contain' , 'none' ] ) ; const ViewStylePropTypes = { ... BorderPropTypes , ... LayoutPropTypes , ... TransformPropTypes , backgroundColor : ColorPropType , opacity : number , platform elevation : number , platform backdropFilter : string , backgroundAttachment : string , backgroundBlendMode : string , backgroundClip : string , backgroundImage : string , backgroundOrigin : oneOf ( [ 'border-box' , 'content-box' , 'padding-box' ] ) , backgroundPosition : string , backgroundRepeat : string , backgroundSize : string , boxShadow : string , clip : string , filter : string , outlineColor : ColorPropType , outlineOffset : stringOrNumber , outlineStyle : string , outlineWidth : stringOrNumber , overscrollBehavior : overscrollBehaviorType , overscrollBehaviorX : overscrollBehaviorType , overscrollBehaviorY : overscrollBehaviorType , scrollbarWidth : oneOf ( [ 'auto' , 'none' ] ) , scrollSnapAlign : string , scrollSnapType : string , WebkitMaskImage : string , WebkitOverflowScrolling : oneOf ( [ 'auto' , 'touch' ] ) , } ; export default ViewStylePropTypes ;