{"action":"created","comment":{"url":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/comments/37789759","id":37789759,"diff_hunk":"@@ -1,55 +1,31 @@\n+var { NativeModules } = require('react-native');\n+\n+var DeviceUtil = NativeModules.DeviceUtil;\n var Dimensions = require('Dimensions');\n \n class Device {\n+\n   constructor() {\n-    this.width = this._width();\n-    this.height = this._height();\n-    this.kind = this._kind();\n+    this.width = Dimensions.get(\"window\").width;","path":"Device.js","position":12,"original_position":12,"commit_id":"e55b1d3b737ba426a690d15e306e12591cbf7b3e","original_commit_id":"e55b1d3b737ba426a690d15e306e12591cbf7b3e","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Mixed double and single quotes.","created_at":"2015-08-24T18:59:39Z","updated_at":"2015-08-24T18:59:39Z","html_url":"https://github.com/GertjanReynaert/react-native-device/pull/11#discussion_r37789759","pull_request_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/comments/37789759"},"html":{"href":"https://github.com/GertjanReynaert/react-native-device/pull/11#discussion_r37789759"},"pull_request":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/11","id":43209026,"html_url":"https://github.com/GertjanReynaert/react-native-device/pull/11","diff_url":"https://github.com/GertjanReynaert/react-native-device/pull/11.diff","patch_url":"https://github.com/GertjanReynaert/react-native-device/pull/11.patch","issue_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/issues/11","number":11,"state":"open","locked":false,"title":"Native UIDevice Support","user":{"login":"kkjdaniel","id":7441747,"avatar_url":"https://avatars.githubusercontent.com/u/7441747?v=3","gravatar_id":"","url":"https://api.github.com/users/kkjdaniel","html_url":"https://github.com/kkjdaniel","followers_url":"https://api.github.com/users/kkjdaniel/followers","following_url":"https://api.github.com/users/kkjdaniel/following{/other_user}","gists_url":"https://api.github.com/users/kkjdaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/kkjdaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkjdaniel/subscriptions","organizations_url":"https://api.github.com/users/kkjdaniel/orgs","repos_url":"https://api.github.com/users/kkjdaniel/repos","events_url":"https://api.github.com/users/kkjdaniel/events{/privacy}","received_events_url":"https://api.github.com/users/kkjdaniel/received_events","type":"User","site_admin":false},"body":"Uses Native UIDevice Class\r\n\r\n+ Model\r\n+ Device Name\r\n+ System Name\r\n+ System Version\r\n\r\nAnd updated the README","created_at":"2015-08-24T18:59:34Z","updated_at":"2015-08-24T18:59:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c61a0a0c2f1e1020d57605d9efa0be14686b97d9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/11/commits","review_comments_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/11/comments","review_comment_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/issues/11/comments","statuses_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/statuses/e55b1d3b737ba426a690d15e306e12591cbf7b3e","head":{"label":"kkjdaniel:master","ref":"master","sha":"e55b1d3b737ba426a690d15e306e12591cbf7b3e","user":{"login":"kkjdaniel","id":7441747,"avatar_url":"https://avatars.githubusercontent.com/u/7441747?v=3","gravatar_id":"","url":"https://api.github.com/users/kkjdaniel","html_url":"https://github.com/kkjdaniel","followers_url":"https://api.github.com/users/kkjdaniel/followers","following_url":"https://api.github.com/users/kkjdaniel/following{/other_user}","gists_url":"https://api.github.com/users/kkjdaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/kkjdaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkjdaniel/subscriptions","organizations_url":"https://api.github.com/users/kkjdaniel/orgs","repos_url":"https://api.github.com/users/kkjdaniel/repos","events_url":"https://api.github.com/users/kkjdaniel/events{/privacy}","received_events_url":"https://api.github.com/users/kkjdaniel/received_events","type":"User","site_admin":false},"repo":{"id":41318541,"name":"react-native-device","full_name":"kkjdaniel/react-native-device","owner":{"login":"kkjdaniel","id":7441747,"avatar_url":"https://avatars.githubusercontent.com/u/7441747?v=3","gravatar_id":"","url":"https://api.github.com/users/kkjdaniel","html_url":"https://github.com/kkjdaniel","followers_url":"https://api.github.com/users/kkjdaniel/followers","following_url":"https://api.github.com/users/kkjdaniel/following{/other_user}","gists_url":"https://api.github.com/users/kkjdaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/kkjdaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkjdaniel/subscriptions","organizations_url":"https://api.github.com/users/kkjdaniel/orgs","repos_url":"https://api.github.com/users/kkjdaniel/repos","events_url":"https://api.github.com/users/kkjdaniel/events{/privacy}","received_events_url":"https://api.github.com/users/kkjdaniel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kkjdaniel/react-native-device","description":"Device detection for react-native","fork":true,"url":"https://api.github.com/repos/kkjdaniel/react-native-device","forks_url":"https://api.github.com/repos/kkjdaniel/react-native-device/forks","keys_url":"https://api.github.com/repos/kkjdaniel/react-native-device/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kkjdaniel/react-native-device/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kkjdaniel/react-native-device/teams","hooks_url":"https://api.github.com/repos/kkjdaniel/react-native-device/hooks","issue_events_url":"https://api.github.com/repos/kkjdaniel/react-native-device/issues/events{/number}","events_url":"https://api.github.com/repos/kkjdaniel/react-native-device/events","assignees_url":"https://api.github.com/repos/kkjdaniel/react-native-device/assignees{/user}","branches_url":"https://api.github.com/repos/kkjdaniel/react-native-device/branches{/branch}","tags_url":"https://api.github.com/repos/kkjdaniel/react-native-device/tags","blobs_url":"https://api.github.com/repos/kkjdaniel/react-native-device/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kkjdaniel/react-native-device/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kkjdaniel/react-native-device/git/refs{/sha}","trees_url":"https://api.github.com/repos/kkjdaniel/react-native-device/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kkjdaniel/react-native-device/statuses/{sha}","languages_url":"https://api.github.com/repos/kkjdaniel/react-native-device/languages","stargazers_url":"https://api.github.com/repos/kkjdaniel/react-native-device/stargazers","contributors_url":"https://api.github.com/repos/kkjdaniel/react-native-device/contributors","subscribers_url":"https://api.github.com/repos/kkjdaniel/react-native-device/subscribers","subscription_url":"https://api.github.com/repos/kkjdaniel/react-native-device/subscription","commits_url":"https://api.github.com/repos/kkjdaniel/react-native-device/commits{/sha}","git_commits_url":"https://api.github.com/repos/kkjdaniel/react-native-device/git/commits{/sha}","comments_url":"https://api.github.com/repos/kkjdaniel/react-native-device/comments{/number}","issue_comment_url":"https://api.github.com/repos/kkjdaniel/react-native-device/issues/comments{/number}","contents_url":"https://api.github.com/repos/kkjdaniel/react-native-device/contents/{+path}","compare_url":"https://api.github.com/repos/kkjdaniel/react-native-device/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kkjdaniel/react-native-device/merges","archive_url":"https://api.github.com/repos/kkjdaniel/react-native-device/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kkjdaniel/react-native-device/downloads","issues_url":"https://api.github.com/repos/kkjdaniel/react-native-device/issues{/number}","pulls_url":"https://api.github.com/repos/kkjdaniel/react-native-device/pulls{/number}","milestones_url":"https://api.github.com/repos/kkjdaniel/react-native-device/milestones{/number}","notifications_url":"https://api.github.com/repos/kkjdaniel/react-native-device/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kkjdaniel/react-native-device/labels{/name}","releases_url":"https://api.github.com/repos/kkjdaniel/react-native-device/releases{/id}","created_at":"2015-08-24T17:58:43Z","updated_at":"2015-08-24T18:25:27Z","pushed_at":"2015-08-24T18:58:46Z","git_url":"git://github.com/kkjdaniel/react-native-device.git","ssh_url":"git@github.com:kkjdaniel/react-native-device.git","clone_url":"https://github.com/kkjdaniel/react-native-device.git","svn_url":"https://github.com/kkjdaniel/react-native-device","homepage":null,"size":221,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GertjanReynaert:master","ref":"master","sha":"1a770258da25904306caa1b6c685f8046c2c9fd9","user":{"login":"GertjanReynaert","id":4712292,"avatar_url":"https://avatars.githubusercontent.com/u/4712292?v=3","gravatar_id":"","url":"https://api.github.com/users/GertjanReynaert","html_url":"https://github.com/GertjanReynaert","followers_url":"https://api.github.com/users/GertjanReynaert/followers","following_url":"https://api.github.com/users/GertjanReynaert/following{/other_user}","gists_url":"https://api.github.com/users/GertjanReynaert/gists{/gist_id}","starred_url":"https://api.github.com/users/GertjanReynaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GertjanReynaert/subscriptions","organizations_url":"https://api.github.com/users/GertjanReynaert/orgs","repos_url":"https://api.github.com/users/GertjanReynaert/repos","events_url":"https://api.github.com/users/GertjanReynaert/events{/privacy}","received_events_url":"https://api.github.com/users/GertjanReynaert/received_events","type":"User","site_admin":false},"repo":{"id":33950549,"name":"react-native-device","full_name":"GertjanReynaert/react-native-device","owner":{"login":"GertjanReynaert","id":4712292,"avatar_url":"https://avatars.githubusercontent.com/u/4712292?v=3","gravatar_id":"","url":"https://api.github.com/users/GertjanReynaert","html_url":"https://github.com/GertjanReynaert","followers_url":"https://api.github.com/users/GertjanReynaert/followers","following_url":"https://api.github.com/users/GertjanReynaert/following{/other_user}","gists_url":"https://api.github.com/users/GertjanReynaert/gists{/gist_id}","starred_url":"https://api.github.com/users/GertjanReynaert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GertjanReynaert/subscriptions","organizations_url":"https://api.github.com/users/GertjanReynaert/orgs","repos_url":"https://api.github.com/users/GertjanReynaert/repos","events_url":"https://api.github.com/users/GertjanReynaert/events{/privacy}","received_events_url":"https://api.github.com/users/GertjanReynaert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GertjanReynaert/react-native-device","description":"Device detection for react-native","fork":false,"url":"https://api.github.com/repos/GertjanReynaert/react-native-device","forks_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/forks","keys_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/teams","hooks_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/hooks","issue_events_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/issues/events{/number}","events_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/events","assignees_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/assignees{/user}","branches_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/branches{/branch}","tags_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/tags","blobs_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/git/refs{/sha}","trees_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/statuses/{sha}","languages_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/languages","stargazers_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/stargazers","contributors_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/contributors","subscribers_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/subscribers","subscription_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/subscription","commits_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/commits{/sha}","git_commits_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/git/commits{/sha}","comments_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/comments{/number}","issue_comment_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/issues/comments{/number}","contents_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/contents/{+path}","compare_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/merges","archive_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/downloads","issues_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/issues{/number}","pulls_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls{/number}","milestones_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/milestones{/number}","notifications_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/labels{/name}","releases_url":"https://api.github.com/repos/GertjanReynaert/react-native-device/releases{/id}","created_at":"2015-04-14T18:50:59Z","updated_at":"2015-08-24T06:28:44Z","pushed_at":"2015-08-24T18:59:34Z","git_url":"git://github.com/GertjanReynaert/react-native-device.git","ssh_url":"git@github.com:GertjanReynaert/react-native-device.git","clone_url":"https://github.com/GertjanReynaert/react-native-device.git","svn_url":"https://github.com/GertjanReynaert/react-native-device","homepage":null,"size":223,"stargazers_count":43,"watchers_count":43,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":3,"forks":11,"open_issues":3,"watchers":43,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/11"},"html":{"href":"https://github.com/GertjanReynaert/react-native-device/pull/11"},"issue":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/issues/11"},"comments":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/GertjanReynaert/react-native-device/statuses/e55b1d3b737ba426a690d15e306e12591cbf7b3e"}}}}