{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/7033","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/7033/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/7033/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/7033/events","html_url":"https://github.com/facebook/react-native/pull/7033","id":149113407,"number":7033,"title":"Adds support for platform specific styles in StyleSheet","user":{"login":"BilalBudhani","id":1650995,"avatar_url":"https://avatars.githubusercontent.com/u/1650995?v=3","gravatar_id":"","url":"https://api.github.com/users/BilalBudhani","html_url":"https://github.com/BilalBudhani","followers_url":"https://api.github.com/users/BilalBudhani/followers","following_url":"https://api.github.com/users/BilalBudhani/following{/other_user}","gists_url":"https://api.github.com/users/BilalBudhani/gists{/gist_id}","starred_url":"https://api.github.com/users/BilalBudhani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BilalBudhani/subscriptions","organizations_url":"https://api.github.com/users/BilalBudhani/orgs","repos_url":"https://api.github.com/users/BilalBudhani/repos","events_url":"https://api.github.com/users/BilalBudhani/events{/privacy}","received_events_url":"https://api.github.com/users/BilalBudhani/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-18T10:40:16Z","updated_at":"2016-04-18T10:42:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/7033","html_url":"https://github.com/facebook/react-native/pull/7033","diff_url":"https://github.com/facebook/react-native/pull/7033.diff","patch_url":"https://github.com/facebook/react-native/pull/7033.patch"},"body":"I was reading this blog post http://makeitopen.com/tutorials/building-the-f8-app/design/ and I saw a neat technique by the team for implementing platform specific styles in Stylesheet module. \r\n\r\n```javascript\r\nvar styles = F8StyleSheet.create({\r\n  container: {\r\n    flexDirection: 'row',\r\n    backgroundColor: 'transparent',\r\n    ios: {\r\n      paddingBottom: 6,\r\n      justifyContent: 'center',\r\n      alignItems: 'center',\r\n    },\r\n    android: {\r\n      paddingLeft: 60,\r\n    },\r\n  },\r\n});\r\n```\r\nI really like this pattern. It helps to keep the code clean and simple to deal with. I feel this should be a part of StyleSheet core module. I believe this pattern has a potential to create an impact on larger level. \r\n\r\nI tried implementing this feature from my level of understanding. I would love to receive feedbacks and thoughts on this from the community. "},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/211323638","html_url":"https://github.com/facebook/react-native/pull/7033#issuecomment-211323638","issue_url":"https://api.github.com/repos/facebook/react-native/issues/7033","id":211323638,"user":{"login":"facebook-github-bot","id":6422482,"avatar_url":"https://avatars.githubusercontent.com/u/6422482?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot","html_url":"https://github.com/facebook-github-bot","followers_url":"https://api.github.com/users/facebook-github-bot/followers","following_url":"https://api.github.com/users/facebook-github-bot/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot/orgs","repos_url":"https://api.github.com/users/facebook-github-bot/repos","events_url":"https://api.github.com/users/facebook-github-bot/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T10:42:17Z","updated_at":"2016-04-18T10:42:17Z","body":"By analyzing the blame information on this pull request, we identified @prometheansacrifice, @spicyj and @corbt to be potential reviewers."}}