{"action":"closed","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/7367","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/7367/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/7367/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/7367/events","html_url":"https://github.com/facebook/react-native/issues/7367","id":152893408,"number":7367,"title":"Android LayoutAnimation for 'create' ignores target opacity","user":{"login":"martysaxton","id":1158836,"avatar_url":"https://avatars.githubusercontent.com/u/1158836?v=3","gravatar_id":"","url":"https://api.github.com/users/martysaxton","html_url":"https://github.com/martysaxton","followers_url":"https://api.github.com/users/martysaxton/followers","following_url":"https://api.github.com/users/martysaxton/following{/other_user}","gists_url":"https://api.github.com/users/martysaxton/gists{/gist_id}","starred_url":"https://api.github.com/users/martysaxton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martysaxton/subscriptions","organizations_url":"https://api.github.com/users/martysaxton/orgs","repos_url":"https://api.github.com/users/martysaxton/repos","events_url":"https://api.github.com/users/martysaxton/events{/privacy}","received_events_url":"https://api.github.com/users/martysaxton/received_events","type":"User","site_admin":false},"labels":[{"id":260305031,"url":"https://api.github.com/repos/facebook/react-native/labels/Android","name":"Android","color":"bfe5bf","default":false},{"id":470317962,"url":"https://api.github.com/repos/facebook/react-native/labels/Icebox","name":"Icebox","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-03T22:58:33Z","updated_at":"2016-10-27T22:16:50Z","closed_at":"2016-10-27T22:16:50Z","body":"The 'create' animation is hard coded to fade in from opacity 0 to opacity 1.  It needs to fade in to whatever the view's target opacity is set to.  It's hard coded in BaseLayoutAnimation:\r\n\r\n @Override\r\n  Animation createAnimationImpl(View view, int x, int y, int width, int height) {\r\n    float fromValue = isReverse() ? 1.0f : 0.0f;\r\n    float toValue = isReverse() ? 0.0f : 1.0f;\r\n    if (mAnimatedProperty != null) {\r\n      switch (mAnimatedProperty) {\r\n        case OPACITY:\r\n          return new OpacityAnimation(view, fromValue, toValue);\r\n...\r\n\r\nI think target opacity needs to be added as a param to this method and passed along from wherever it comes from:\r\n\r\n  Animation createAnimationImpl(View view, int x, int y, int width, int height, float opacity) {\r\n\r\n\r\n"}}
{"actor":{"display_login":"mkonicek"}}