From 0fe72579be3488f988b1647170146a70bb0dc48b Mon Sep 17 00:00:00 2001 From: Eli White Date: Sat, 12 May 2018 23:10:53 -0700 Subject: [PATCH] Image cleanup Reviewed By: yungsters Differential Revision: D7983744 fbshipit-source-id: c6c1c78fd93b40553688f1444b57074802520f7e --- Libraries/Image/Image.ios.js | 5 ----- Libraries/Image/ImageProps.js | 6 +++--- 2 files changed, 3 insertions(+), 8 deletions(-) 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