[Same as 668] Tile: Warning: Failed prop type: Invalid props.style key 'resizeMode' supplied to 'View'
See original GitHub issueDescription
I get the same warning as listed on this issue: https://github.com/react-native-training/react-native-elements/issues/668
Warning: Failed prop type: Invalid props.style key resizeMode supplied to View.
Bad object: {
"alignItems": "center",
"justifyContent": "center",
"resizeMode": "cover",
"backgroundColor": "#ffffff",
"flex": 2
}
...
Versions of the dependencies
"dependencies": {
"react": "16.0.0",
"react-native": "^0.50.4",
"react-native-elements": "^0.18.4",
"react-native-vector-icons": "^4.4.2",
"react-navigation": "^1.0.0-beta.21"
},
Reproduction Steps and Sample Code
You can clone my practice repo under that branch. I see the warning when I run it on an android simulator. https://github.com/Jun711/ReactNativePractice/tree/resizeModeWarning
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Tile: Warning: Failed prop type: Invalid props.style key ...
The fix is to move it to the new imageStyle prop. Here's the warning message: Warning: Failed prop type: Invalid props.style key resizeMode...
Read more >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 >Failed prop type: Invalid props.style key `resizeMode ...
ERROR Warning: Failed prop type: Invalid props.style key `resizeMode` supplied to `Text`. هدا هو الكود import React, ...
Read more >Debug - Reference Source
Assert(keyRecord != null, "Unknown key record type in defer load ... Assert(startingIndex >= 0, "Source composite collection failed to supply an index"); ...
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 Free
Top 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
Yea the bug is here https://github.com/react-native-training/react-native-elements/blob/master/src/tile/Tile.js#L60.
resizeMode
is a prop not a style@francisrod01 This modification should do the job. This will be in the next release