Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed incorrect style props passed to Android Image when using children
Summary: Hi there, Here is a fix for #7538 (and #5085). I had originally discovered this issue when using `resizeMode` through the style props. Although this might arguably be an incorrect usage (see #4759 (comment)) the same issue would happen with the `tintColor` and `overlayColor` style props. To test this, you can render the following: ```jsx const imageContainerStyle = {width: 100, height: 100, backgroundColor: 'green', marginLeft: 10, marginTop: 10, }; const imageStyle = {flex: 1, width: undefined, height: undefined, resizeMode: 'contain', }; return ( <View style={styles.container}> <View style={imageContainerStyle}> <Image style={imageStyle} source={ {uri:'http://resizing.flixster.com/DeLpPTAwX3O2LszOpeaMHjbzuAw=/53x77/dkpu1ddg7pbsk.cloudfront.net/movie/11/16/47/11164719_ori.jpg'} }> </Image> </View> <View style={imageContainerStyle}> <Image style={imageStyle} source={ { Closes #8410 Differential Revision: D3488010 Pulled By: andreicoman11 fbshipit-source-id: e9d1283cce8426c8878f9c3c66a43a2141232277
- Loading branch information