{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/15021","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/15021/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/15021/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/15021/events","html_url":"https://github.com/facebook/react-native/pull/15021","id":243120686,"node_id":"MDExOlB1bGxSZXF1ZXN0MTMwNjgxMDA2","number":15021,"title":"Android: Introduce viewLayerTypeAndroid and deprecate renderToHardwareAndroid","user":{"login":"rigdern","id":199935,"node_id":"MDQ6VXNlcjE5OTkzNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/199935?v=4","gravatar_id":"","url":"https://api.github.com/users/rigdern","html_url":"https://github.com/rigdern","followers_url":"https://api.github.com/users/rigdern/followers","following_url":"https://api.github.com/users/rigdern/following{/other_user}","gists_url":"https://api.github.com/users/rigdern/gists{/gist_id}","starred_url":"https://api.github.com/users/rigdern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rigdern/subscriptions","organizations_url":"https://api.github.com/users/rigdern/orgs","repos_url":"https://api.github.com/users/rigdern/repos","events_url":"https://api.github.com/users/rigdern/events{/privacy}","received_events_url":"https://api.github.com/users/rigdern/received_events","type":"User","site_admin":false},"labels":[{"id":869757822,"node_id":"MDU6TGFiZWw4Njk3NTc4MjI=","url":"https://api.github.com/repos/facebook/react-native/labels/:clipboard:No%20Release%20Notes","name":":clipboard:No Release Notes","color":"d4c5f9","default":false},{"id":870851515,"node_id":"MDU6TGFiZWw4NzA4NTE1MTU=","url":"https://api.github.com/repos/facebook/react-native/labels/:large_blue_diamond:Android","name":":large_blue_diamond:Android","color":"bfd4f2","default":false},{"id":934239421,"node_id":"MDU6TGFiZWw5MzQyMzk0MjE=","url":"https://api.github.com/repos/facebook/react-native/labels/:white_check_mark:Test%20Plan","name":":white_check_mark:Test Plan","color":"0e8a16","default":false},{"id":196858975,"node_id":"MDU6TGFiZWwxOTY4NTg5NzU=","url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"ffffff","default":false},{"id":302755315,"node_id":"MDU6TGFiZWwzMDI3NTUzMTU=","url":"https://api.github.com/repos/facebook/react-native/labels/Import%20Failed","name":"Import Failed","color":"e11d21","default":false},{"id":358768107,"node_id":"MDU6TGFiZWwzNTg3NjgxMDc=","url":"https://api.github.com/repos/facebook/react-native/labels/Import%20Started","name":"Import Started","color":"ffffff","default":false},{"id":337217254,"node_id":"MDU6TGFiZWwzMzcyMTcyNTQ=","url":"https://api.github.com/repos/facebook/react-native/labels/Ran%20Commands","name":"Ran Commands","color":"ffffff","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-07-14T21:47:49Z","updated_at":"2018-07-19T19:50:57Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/15021","html_url":"https://github.com/facebook/react-native/pull/15021","diff_url":"https://github.com/facebook/react-native/pull/15021.diff","patch_url":"https://github.com/facebook/react-native/pull/15021.patch"},"body":"React Native for Android supports the `renderToHardwareAndroid` prop which enables a developer to set a view's layer type to `LAYER_TYPE_HARDWARE` or `LAYER_TYPE_NONE`. Natively, Android supports 3 values for a view's layer type but only 2 of them are exposed to JavaScript.\r\n\r\nThis change introduces a prop called `viewLayerTypeAndroid` which is an enum which exposes all 3 possible view layer types to JavaScript:\r\n  - `LAYER_TYPE_NONE`\r\n  - `LAYER_TYPE_HARDWARE`\r\n  - `LAYER_TYPE_SOFTWARE`\r\n\r\nThis change also deprecates `renderToHardwareAndroid` in favor of `viewLayerTypeAndroid` because `viewLayerTypeAndroid` is a superset of `renderToHardwareAndroid`.\r\n\r\n**Test plan (required)**\r\n\r\nVerified this prop works in a test app and my team is using this change in or app.\r\n\r\nAdam Comella\r\nMicrosoft Corp."},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/406393789","html_url":"https://github.com/facebook/react-native/pull/15021#issuecomment-406393789","issue_url":"https://api.github.com/repos/facebook/react-native/issues/15021","id":406393789,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjM5Mzc4OQ==","user":{"login":"hramos","id":165856,"node_id":"MDQ6VXNlcjE2NTg1Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/165856?v=4","gravatar_id":"","url":"https://api.github.com/users/hramos","html_url":"https://github.com/hramos","followers_url":"https://api.github.com/users/hramos/followers","following_url":"https://api.github.com/users/hramos/following{/other_user}","gists_url":"https://api.github.com/users/hramos/gists{/gist_id}","starred_url":"https://api.github.com/users/hramos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hramos/subscriptions","organizations_url":"https://api.github.com/users/hramos/orgs","repos_url":"https://api.github.com/users/hramos/repos","events_url":"https://api.github.com/users/hramos/events{/privacy}","received_events_url":"https://api.github.com/users/hramos/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T19:50:57Z","updated_at":"2018-07-19T19:50:57Z","author_association":"CONTRIBUTOR","body":"I'm sorry this fell through the cracks. Would you still like to see this merged?"}}
{"actor":{"display_login":"hramos"}}