mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-02 02:25:22 +00:00
committed by
Nicolas Gallagher
parent
d04721c75a
commit
16d98b49f0
+10
-1
@@ -108,7 +108,13 @@ class Image extends Component<*, State> {
|
|||||||
onLoadStart: func,
|
onLoadStart: func,
|
||||||
resizeMode: oneOf(Object.keys(ImageResizeMode)),
|
resizeMode: oneOf(Object.keys(ImageResizeMode)),
|
||||||
source: ImageSourcePropType,
|
source: ImageSourcePropType,
|
||||||
style: StyleSheetPropType(ImageStylePropTypes)
|
style: StyleSheetPropType(ImageStylePropTypes),
|
||||||
|
// compatibility with React Native
|
||||||
|
/* eslint-disable react/sort-prop-types */
|
||||||
|
blurRadius: number,
|
||||||
|
capInsets: shape({ top: number, left: number, bottom: number, right: number }),
|
||||||
|
resizeMethod: oneOf(['auto', 'resize', 'scale'])
|
||||||
|
/* eslint-enable react/sort-prop-types */
|
||||||
};
|
};
|
||||||
|
|
||||||
static defaultProps = {
|
static defaultProps = {
|
||||||
@@ -184,10 +190,13 @@ class Image extends Component<*, State> {
|
|||||||
source,
|
source,
|
||||||
testID,
|
testID,
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
blurRadius,
|
||||||
|
capInsets,
|
||||||
onError,
|
onError,
|
||||||
onLoad,
|
onLoad,
|
||||||
onLoadEnd,
|
onLoadEnd,
|
||||||
onLoadStart,
|
onLoadStart,
|
||||||
|
resizeMethod,
|
||||||
resizeMode,
|
resizeMode,
|
||||||
/* eslint-enable */
|
/* eslint-enable */
|
||||||
...other
|
...other
|
||||||
|
|||||||
Reference in New Issue
Block a user