diff --git a/Libraries/Image/Image.ios.js b/Libraries/Image/Image.ios.js index eb0d0241a..4989f62d3 100644 --- a/Libraries/Image/Image.ios.js +++ b/Libraries/Image/Image.ios.js @@ -9,18 +9,13 @@ */ 'use strict'; -const EdgeInsetsPropType = require('EdgeInsetsPropType'); const ImageProps = require('ImageProps'); const ImageResizeMode = require('ImageResizeMode'); -const ImageSourcePropType = require('ImageSourcePropType'); -const ImageStylePropTypes = require('ImageStylePropTypes'); const NativeMethodsMixin = require('NativeMethodsMixin'); const NativeModules = require('NativeModules'); const React = require('React'); -const PropTypes = require('prop-types'); const ReactNativeViewAttributes = require('ReactNativeViewAttributes'); const StyleSheet = require('StyleSheet'); -const StyleSheetPropType = require('StyleSheetPropType'); const createReactClass = require('create-react-class'); const flattenStyle = require('flattenStyle'); diff --git a/Libraries/Image/ImageProps.js b/Libraries/Image/ImageProps.js index 630155862..46d367fcc 100644 --- a/Libraries/Image/ImageProps.js +++ b/Libraries/Image/ImageProps.js @@ -18,8 +18,8 @@ const StyleSheetPropType = require('StyleSheetPropType'); import type {ImageSource} from 'ImageSource'; import type {EdgeInsetsProp} from 'EdgeInsetsPropType'; -import type {LayoutEvent} from 'CoreEventTypes'; -import type {SyntheticEvent} from 'CoreEventTypes'; +import type {LayoutEvent, SyntheticEvent} from 'CoreEventTypes'; +import type {ImageStyleProp} from 'StyleSheet'; export type ImageProps = { accessible?: boolean, @@ -35,7 +35,7 @@ export type ImageProps = { resizeMethod?: ?('auto' | 'resize' | 'scale'), resizeMode?: ?('cover' | 'contain' | 'stretch' | 'repeat' | 'center'), source?: ?ImageSource, - style?: typeof ImageStylePropTypes, + style?: ImageStyleProp, testID?: ?string, // ios