[ReactNative] resizeMode is not a nativeOnly prop
Summary: resizeMode is a native prop, but it is also in the propTypes, so this causes an incorrect warning: ``` Prop resizeMode = `contain` should not be set directly on Image. ``` @public Test Plan: No warnings on image example in UIExplorer
This commit is contained in:
parent
1e66e5f53d
commit
47508566a0
|
@ -178,7 +178,6 @@ var nativeOnlyProps = {
|
|||
src: true,
|
||||
defaultImageSrc: true,
|
||||
imageTag: true,
|
||||
resizeMode: true,
|
||||
};
|
||||
if (__DEV__) {
|
||||
verifyPropTypes(Image, RCTStaticImage.viewConfig, nativeOnlyProps);
|
||||
|
|
Loading…
Reference in New Issue