Image cleanup
Reviewed By: yungsters Differential Revision: D7983744 fbshipit-source-id: c6c1c78fd93b40553688f1444b57074802520f7e
This commit is contained in:
parent
44743c07ad
commit
0fe72579be
|
@ -9,18 +9,13 @@
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const EdgeInsetsPropType = require('EdgeInsetsPropType');
|
|
||||||
const ImageProps = require('ImageProps');
|
const ImageProps = require('ImageProps');
|
||||||
const ImageResizeMode = require('ImageResizeMode');
|
const ImageResizeMode = require('ImageResizeMode');
|
||||||
const ImageSourcePropType = require('ImageSourcePropType');
|
|
||||||
const ImageStylePropTypes = require('ImageStylePropTypes');
|
|
||||||
const NativeMethodsMixin = require('NativeMethodsMixin');
|
const NativeMethodsMixin = require('NativeMethodsMixin');
|
||||||
const NativeModules = require('NativeModules');
|
const NativeModules = require('NativeModules');
|
||||||
const React = require('React');
|
const React = require('React');
|
||||||
const PropTypes = require('prop-types');
|
|
||||||
const ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
const ReactNativeViewAttributes = require('ReactNativeViewAttributes');
|
||||||
const StyleSheet = require('StyleSheet');
|
const StyleSheet = require('StyleSheet');
|
||||||
const StyleSheetPropType = require('StyleSheetPropType');
|
|
||||||
|
|
||||||
const createReactClass = require('create-react-class');
|
const createReactClass = require('create-react-class');
|
||||||
const flattenStyle = require('flattenStyle');
|
const flattenStyle = require('flattenStyle');
|
||||||
|
|
|
@ -18,8 +18,8 @@ const StyleSheetPropType = require('StyleSheetPropType');
|
||||||
|
|
||||||
import type {ImageSource} from 'ImageSource';
|
import type {ImageSource} from 'ImageSource';
|
||||||
import type {EdgeInsetsProp} from 'EdgeInsetsPropType';
|
import type {EdgeInsetsProp} from 'EdgeInsetsPropType';
|
||||||
import type {LayoutEvent} from 'CoreEventTypes';
|
import type {LayoutEvent, SyntheticEvent} from 'CoreEventTypes';
|
||||||
import type {SyntheticEvent} from 'CoreEventTypes';
|
import type {ImageStyleProp} from 'StyleSheet';
|
||||||
|
|
||||||
export type ImageProps = {
|
export type ImageProps = {
|
||||||
accessible?: boolean,
|
accessible?: boolean,
|
||||||
|
@ -35,7 +35,7 @@ export type ImageProps = {
|
||||||
resizeMethod?: ?('auto' | 'resize' | 'scale'),
|
resizeMethod?: ?('auto' | 'resize' | 'scale'),
|
||||||
resizeMode?: ?('cover' | 'contain' | 'stretch' | 'repeat' | 'center'),
|
resizeMode?: ?('cover' | 'contain' | 'stretch' | 'repeat' | 'center'),
|
||||||
source?: ?ImageSource,
|
source?: ?ImageSource,
|
||||||
style?: typeof ImageStylePropTypes,
|
style?: ImageStyleProp,
|
||||||
testID?: ?string,
|
testID?: ?string,
|
||||||
|
|
||||||
// ios
|
// ios
|
||||||
|
|
Loading…
Reference in New Issue