question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Failed prop type: Invalid props.style.resizeMode supplied to FastImage

See original GitHub issue

Hello, 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:closed
  • Created 6 years ago
  • Comments:8

github_iconTop GitHub Comments

4reactions
claudiosvcccommented, Sep 29, 2017

Is there a fix for this? I’m also seeing the same issue.

3reactions
neikercommented, Aug 30, 2018

Why this is closed? resizeMode is a valid style key on react native Image component.

https://facebook.github.io/react-native/docs/image#style

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found