{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/6971","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/6971/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/6971/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/6971/events","html_url":"https://github.com/facebook/react-native/issues/6971","id":148290555,"number":6971,"title":"Image with resizeMode=contain blinks on rerender (Android)","user":{"login":"MichaelDanielTom","id":5520838,"avatar_url":"https://avatars.githubusercontent.com/u/5520838?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelDanielTom","html_url":"https://github.com/MichaelDanielTom","followers_url":"https://api.github.com/users/MichaelDanielTom/followers","following_url":"https://api.github.com/users/MichaelDanielTom/following{/other_user}","gists_url":"https://api.github.com/users/MichaelDanielTom/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelDanielTom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelDanielTom/subscriptions","organizations_url":"https://api.github.com/users/MichaelDanielTom/orgs","repos_url":"https://api.github.com/users/MichaelDanielTom/repos","events_url":"https://api.github.com/users/MichaelDanielTom/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelDanielTom/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf"},{"url":"https://api.github.com/repos/facebook/react-native/labels/Contains%20Potential%20Question%20Keywords","name":"Contains Potential Question Keywords","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-14T08:34:40Z","updated_at":"2016-04-17T17:55:31Z","closed_at":null,"body":"Hey guys,\r\n\r\nI'm trying to change the image of a button based on if the button is selected or not. However if the image has resizeMode set to 'contain', the image always blinks before changing. Other resizeModes do not blink. The image sources are local, included with require.\r\n\r\nHere's a barebones render method that should reproduce the issue:\r\n```\r\nrender() {\r\n    var source = this.props.isSelected ? require('./image1.png') : require('./image2.png')\r\n    return (\r\n        <TouchableNativeFeedback>\r\n            <View>\r\n                <Image style={{resizeMode: 'contain'}} source={source} />\r\n            </View>\r\n        </TouchableNativeFeedback>\r\n    )\r\n}\r\n```\r\n\r\nI'm using rn0.22.2 for Android, developing on a Mac. The issue occurs on both device and simulator, with debug mode both on and off."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/211072037","html_url":"https://github.com/facebook/react-native/issues/6971#issuecomment-211072037","issue_url":"https://api.github.com/repos/facebook/react-native/issues/6971","id":211072037,"user":{"login":"MichaelDanielTom","id":5520838,"avatar_url":"https://avatars.githubusercontent.com/u/5520838?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelDanielTom","html_url":"https://github.com/MichaelDanielTom","followers_url":"https://api.github.com/users/MichaelDanielTom/followers","following_url":"https://api.github.com/users/MichaelDanielTom/following{/other_user}","gists_url":"https://api.github.com/users/MichaelDanielTom/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelDanielTom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelDanielTom/subscriptions","organizations_url":"https://api.github.com/users/MichaelDanielTom/orgs","repos_url":"https://api.github.com/users/MichaelDanielTom/repos","events_url":"https://api.github.com/users/MichaelDanielTom/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelDanielTom/received_events","type":"User","site_admin":false},"created_at":"2016-04-17T17:55:31Z","updated_at":"2016-04-17T17:55:31Z","body":"That definitely helped with upscaling the image, but it doesn't fix the blinking problem, I did upgrade, and it's still there :/"}}