Skip to content

Commit

Permalink
[ReactNative] resizeMode is not a nativeOnly prop
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Eric Vicenti committed Jun 23, 2015
1 parent 1e66e5f commit 4750856
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Libraries/Image/Image.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ var nativeOnlyProps = {
src: true,
defaultImageSrc: true,
imageTag: true,
resizeMode: true,
};
if (__DEV__) {
verifyPropTypes(Image, RCTStaticImage.viewConfig, nativeOnlyProps);
Expand Down

0 comments on commit 4750856

Please sign in to comment.