Warning: Failed prop type: Invalid props.style.resizeMode supplied to FastImage
See original GitHub issueHello, I get this error on Android but Image is resized normal.But the warning is very annoying.
Warning: Failed prop type: Invalid props.style.resizeMode supplied to FastImage
Bad object: { “width”:150, “height”:100, “borderRadius”:13, “margin”:3, “resizeMode”:‘contain’ }
<FastImage {...this.props.imageProps} style={[styles.image, this.props.imageStyle]} source={{ uri: this.props.currentMessage.image, priority: FastImage.priority.normal, headers:{} }} resizeMode={FastImage.resizeMode.contain} />
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
Warning: Failed prop type: Invalid props.style key 'resizeMode ...
When I replace the Tile with something else (just a simple view) its fine. The warnings are as below: Warning: Failed prop type:...
Read more >Warning: Failed prop type: Invalid props.style key 'resizeMode ...
Coding example for the question Warning: Failed prop type: Invalid props.style key 'resizeMode' supplied to 'RCTView'-React Native.
Read more >Invalid props.style key 'resizeMode' supplied to 'Text'
I'm using vector icon on react navigation, and when I used some styling, I got warn Warning: Failed prop type: Invalid props.style key ......
Read more >warning: componentwillmount has been renamed, and is not ...
imageProps } resizeMode={'cover'} style={imageStyle} source={{ uri: ... Warning: Failed prop type: Invalid prop tag supplied to DropdownItem . Second Error.
Read more >react-native-fast-image - npm
FastImage, performant React Native image component. ... TypeScript icon, indicating that this package has built-in type declarations.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there a fix for this? I’m also seeing the same issue.
Why this is closed?
resizeMode
is a valid style key on react native Image component.https://facebook.github.io/react-native/docs/image#style