{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/4031","labels_url":"https://api.github.com/repos/facebook/react-native/issues/4031/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/4031/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/4031/events","html_url":"https://github.com/facebook/react-native/issues/4031","id":116053538,"number":4031,"title":"[Android]Image resizeMode 'contain' should be converted as 'FIT_CENTER'","user":{"login":"ldn0x7dc","id":3940989,"avatar_url":"https://avatars.githubusercontent.com/u/3940989?v=3","gravatar_id":"","url":"https://api.github.com/users/ldn0x7dc","html_url":"https://github.com/ldn0x7dc","followers_url":"https://api.github.com/users/ldn0x7dc/followers","following_url":"https://api.github.com/users/ldn0x7dc/following{/other_user}","gists_url":"https://api.github.com/users/ldn0x7dc/gists{/gist_id}","starred_url":"https://api.github.com/users/ldn0x7dc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldn0x7dc/subscriptions","organizations_url":"https://api.github.com/users/ldn0x7dc/orgs","repos_url":"https://api.github.com/users/ldn0x7dc/repos","events_url":"https://api.github.com/users/ldn0x7dc/events{/privacy}","received_events_url":"https://api.github.com/users/ldn0x7dc/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/Good%20First%20Task","name":"Good First Task","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-10T07:32:49Z","updated_at":"2016-01-14T05:01:10Z","closed_at":null,"body":"I'm using React Native v0.12.0.\r\nWhen using **Image** with *resizeMode* specified as *'contain'*, There is a big difference if the png resource is smaller than the Image view size between iOS and Android.\r\non iOS: the image is scaled up to fill the view with ratio unchanged\r\n![iOS](http://pan.lndroid.me/owncloud/index.php/s/kAUR55Qf6IUZnpI/download)\r\n\r\non Android: the image is **NOT** scaled, which is not prefered\r\n![android](http://pan.lndroid.me/owncloud/index.php/s/MVPAxowFy53zwNB/download)\r\n\r\nI've dig into the related source code in *com.facebook.react.views.image.ImageResizeMode*:\r\n> public static ScalingUtils.ScaleType toScaleType(@Nullable String resizeModeValue) {\r\n   if (\"contain\".equals(resizeModeValue)) {\r\n      return ScalingUtils.ScaleType.CENTER_INSIDE;\r\n    }\r\n   ...\r\n  }\r\n\r\nBut I think it should be **FIT_CENTER**, as follows\r\n> if (\"contain\".equals(resizeModeValue)) {\r\n      return ScalingUtils.ScaleType.FIT_CENTER;\r\n    }\r\n\r\nDoes anyone else have also noticed this issue?"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/171530253","html_url":"https://github.com/facebook/react-native/issues/4031#issuecomment-171530253","issue_url":"https://api.github.com/repos/facebook/react-native/issues/4031","id":171530253,"user":{"login":"thstarshine","id":4970172,"avatar_url":"https://avatars.githubusercontent.com/u/4970172?v=3","gravatar_id":"","url":"https://api.github.com/users/thstarshine","html_url":"https://github.com/thstarshine","followers_url":"https://api.github.com/users/thstarshine/followers","following_url":"https://api.github.com/users/thstarshine/following{/other_user}","gists_url":"https://api.github.com/users/thstarshine/gists{/gist_id}","starred_url":"https://api.github.com/users/thstarshine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thstarshine/subscriptions","organizations_url":"https://api.github.com/users/thstarshine/orgs","repos_url":"https://api.github.com/users/thstarshine/repos","events_url":"https://api.github.com/users/thstarshine/events{/privacy}","received_events_url":"https://api.github.com/users/thstarshine/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T05:01:10Z","updated_at":"2016-01-14T05:01:10Z","body":"+1"}}