{"action":"opened","number":232,"pull_request":{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/232","id":63874789,"html_url":"https://github.com/lwansbrough/react-native-camera/pull/232","diff_url":"https://github.com/lwansbrough/react-native-camera/pull/232.diff","patch_url":"https://github.com/lwansbrough/react-native-camera/pull/232.patch","issue_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232","number":232,"state":"open","locked":false,"title":"fix snapshot orientation when device orientation is locked","user":{"login":"rpopovici","id":2832454,"avatar_url":"https://avatars.githubusercontent.com/u/2832454?v=3","gravatar_id":"","url":"https://api.github.com/users/rpopovici","html_url":"https://github.com/rpopovici","followers_url":"https://api.github.com/users/rpopovici/followers","following_url":"https://api.github.com/users/rpopovici/following{/other_user}","gists_url":"https://api.github.com/users/rpopovici/gists{/gist_id}","starred_url":"https://api.github.com/users/rpopovici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpopovici/subscriptions","organizations_url":"https://api.github.com/users/rpopovici/orgs","repos_url":"https://api.github.com/users/rpopovici/repos","events_url":"https://api.github.com/users/rpopovici/events{/privacy}","received_events_url":"https://api.github.com/users/rpopovici/received_events","type":"User","site_admin":false},"body":"As you probably noticed, when the device has locked orientation or you app is locked to a specific orientation, the snapshot rotation is broken. This happens because the orientation events are available only when the orientation is unlocked. This PR is using the sensor information to get the actual device orientation. The hardware events are fired only once when capture is called, in order to avoid battery drain or event queue overloading.","created_at":"2016-03-23T12:35:33Z","updated_at":"2016-03-23T12:35:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/232/commits","review_comments_url":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/232/comments","review_comment_url":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232/comments","statuses_url":"https://api.github.com/repos/lwansbrough/react-native-camera/statuses/4ab7a9d220f8f48809f0403e004b817b5649f064","head":{"label":"rpopovici:master","ref":"master","sha":"4ab7a9d220f8f48809f0403e004b817b5649f064","user":{"login":"rpopovici","id":2832454,"avatar_url":"https://avatars.githubusercontent.com/u/2832454?v=3","gravatar_id":"","url":"https://api.github.com/users/rpopovici","html_url":"https://github.com/rpopovici","followers_url":"https://api.github.com/users/rpopovici/followers","following_url":"https://api.github.com/users/rpopovici/following{/other_user}","gists_url":"https://api.github.com/users/rpopovici/gists{/gist_id}","starred_url":"https://api.github.com/users/rpopovici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpopovici/subscriptions","organizations_url":"https://api.github.com/users/rpopovici/orgs","repos_url":"https://api.github.com/users/rpopovici/repos","events_url":"https://api.github.com/users/rpopovici/events{/privacy}","received_events_url":"https://api.github.com/users/rpopovici/received_events","type":"User","site_admin":false},"repo":{"id":52000045,"name":"react-native-camera","full_name":"rpopovici/react-native-camera","owner":{"login":"rpopovici","id":2832454,"avatar_url":"https://avatars.githubusercontent.com/u/2832454?v=3","gravatar_id":"","url":"https://api.github.com/users/rpopovici","html_url":"https://github.com/rpopovici","followers_url":"https://api.github.com/users/rpopovici/followers","following_url":"https://api.github.com/users/rpopovici/following{/other_user}","gists_url":"https://api.github.com/users/rpopovici/gists{/gist_id}","starred_url":"https://api.github.com/users/rpopovici/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rpopovici/subscriptions","organizations_url":"https://api.github.com/users/rpopovici/orgs","repos_url":"https://api.github.com/users/rpopovici/repos","events_url":"https://api.github.com/users/rpopovici/events{/privacy}","received_events_url":"https://api.github.com/users/rpopovici/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rpopovici/react-native-camera","description":"A Camera component for React Native. Also supports barcode scanning!","fork":true,"url":"https://api.github.com/repos/rpopovici/react-native-camera","forks_url":"https://api.github.com/repos/rpopovici/react-native-camera/forks","keys_url":"https://api.github.com/repos/rpopovici/react-native-camera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rpopovici/react-native-camera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rpopovici/react-native-camera/teams","hooks_url":"https://api.github.com/repos/rpopovici/react-native-camera/hooks","issue_events_url":"https://api.github.com/repos/rpopovici/react-native-camera/issues/events{/number}","events_url":"https://api.github.com/repos/rpopovici/react-native-camera/events","assignees_url":"https://api.github.com/repos/rpopovici/react-native-camera/assignees{/user}","branches_url":"https://api.github.com/repos/rpopovici/react-native-camera/branches{/branch}","tags_url":"https://api.github.com/repos/rpopovici/react-native-camera/tags","blobs_url":"https://api.github.com/repos/rpopovici/react-native-camera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rpopovici/react-native-camera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rpopovici/react-native-camera/git/refs{/sha}","trees_url":"https://api.github.com/repos/rpopovici/react-native-camera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rpopovici/react-native-camera/statuses/{sha}","languages_url":"https://api.github.com/repos/rpopovici/react-native-camera/languages","stargazers_url":"https://api.github.com/repos/rpopovici/react-native-camera/stargazers","contributors_url":"https://api.github.com/repos/rpopovici/react-native-camera/contributors","subscribers_url":"https://api.github.com/repos/rpopovici/react-native-camera/subscribers","subscription_url":"https://api.github.com/repos/rpopovici/react-native-camera/subscription","commits_url":"https://api.github.com/repos/rpopovici/react-native-camera/commits{/sha}","git_commits_url":"https://api.github.com/repos/rpopovici/react-native-camera/git/commits{/sha}","comments_url":"https://api.github.com/repos/rpopovici/react-native-camera/comments{/number}","issue_comment_url":"https://api.github.com/repos/rpopovici/react-native-camera/issues/comments{/number}","contents_url":"https://api.github.com/repos/rpopovici/react-native-camera/contents/{+path}","compare_url":"https://api.github.com/repos/rpopovici/react-native-camera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rpopovici/react-native-camera/merges","archive_url":"https://api.github.com/repos/rpopovici/react-native-camera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rpopovici/react-native-camera/downloads","issues_url":"https://api.github.com/repos/rpopovici/react-native-camera/issues{/number}","pulls_url":"https://api.github.com/repos/rpopovici/react-native-camera/pulls{/number}","milestones_url":"https://api.github.com/repos/rpopovici/react-native-camera/milestones{/number}","notifications_url":"https://api.github.com/repos/rpopovici/react-native-camera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rpopovici/react-native-camera/labels{/name}","releases_url":"https://api.github.com/repos/rpopovici/react-native-camera/releases{/id}","deployments_url":"https://api.github.com/repos/rpopovici/react-native-camera/deployments","created_at":"2016-02-18T10:35:37Z","updated_at":"2016-02-18T10:35:38Z","pushed_at":"2016-03-23T12:16:42Z","git_url":"git://github.com/rpopovici/react-native-camera.git","ssh_url":"git@github.com:rpopovici/react-native-camera.git","clone_url":"https://github.com/rpopovici/react-native-camera.git","svn_url":"https://github.com/rpopovici/react-native-camera","homepage":"","size":243,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lwansbrough:master","ref":"master","sha":"bdb48c3956e32e95f14916e0c49ab71c71aadc0b","user":{"login":"lwansbrough","id":186674,"avatar_url":"https://avatars.githubusercontent.com/u/186674?v=3","gravatar_id":"","url":"https://api.github.com/users/lwansbrough","html_url":"https://github.com/lwansbrough","followers_url":"https://api.github.com/users/lwansbrough/followers","following_url":"https://api.github.com/users/lwansbrough/following{/other_user}","gists_url":"https://api.github.com/users/lwansbrough/gists{/gist_id}","starred_url":"https://api.github.com/users/lwansbrough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwansbrough/subscriptions","organizations_url":"https://api.github.com/users/lwansbrough/orgs","repos_url":"https://api.github.com/users/lwansbrough/repos","events_url":"https://api.github.com/users/lwansbrough/events{/privacy}","received_events_url":"https://api.github.com/users/lwansbrough/received_events","type":"User","site_admin":false},"repo":{"id":33218414,"name":"react-native-camera","full_name":"lwansbrough/react-native-camera","owner":{"login":"lwansbrough","id":186674,"avatar_url":"https://avatars.githubusercontent.com/u/186674?v=3","gravatar_id":"","url":"https://api.github.com/users/lwansbrough","html_url":"https://github.com/lwansbrough","followers_url":"https://api.github.com/users/lwansbrough/followers","following_url":"https://api.github.com/users/lwansbrough/following{/other_user}","gists_url":"https://api.github.com/users/lwansbrough/gists{/gist_id}","starred_url":"https://api.github.com/users/lwansbrough/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lwansbrough/subscriptions","organizations_url":"https://api.github.com/users/lwansbrough/orgs","repos_url":"https://api.github.com/users/lwansbrough/repos","events_url":"https://api.github.com/users/lwansbrough/events{/privacy}","received_events_url":"https://api.github.com/users/lwansbrough/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lwansbrough/react-native-camera","description":"A Camera component for React Native. Also supports barcode scanning!","fork":false,"url":"https://api.github.com/repos/lwansbrough/react-native-camera","forks_url":"https://api.github.com/repos/lwansbrough/react-native-camera/forks","keys_url":"https://api.github.com/repos/lwansbrough/react-native-camera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lwansbrough/react-native-camera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lwansbrough/react-native-camera/teams","hooks_url":"https://api.github.com/repos/lwansbrough/react-native-camera/hooks","issue_events_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/events{/number}","events_url":"https://api.github.com/repos/lwansbrough/react-native-camera/events","assignees_url":"https://api.github.com/repos/lwansbrough/react-native-camera/assignees{/user}","branches_url":"https://api.github.com/repos/lwansbrough/react-native-camera/branches{/branch}","tags_url":"https://api.github.com/repos/lwansbrough/react-native-camera/tags","blobs_url":"https://api.github.com/repos/lwansbrough/react-native-camera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lwansbrough/react-native-camera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lwansbrough/react-native-camera/git/refs{/sha}","trees_url":"https://api.github.com/repos/lwansbrough/react-native-camera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lwansbrough/react-native-camera/statuses/{sha}","languages_url":"https://api.github.com/repos/lwansbrough/react-native-camera/languages","stargazers_url":"https://api.github.com/repos/lwansbrough/react-native-camera/stargazers","contributors_url":"https://api.github.com/repos/lwansbrough/react-native-camera/contributors","subscribers_url":"https://api.github.com/repos/lwansbrough/react-native-camera/subscribers","subscription_url":"https://api.github.com/repos/lwansbrough/react-native-camera/subscription","commits_url":"https://api.github.com/repos/lwansbrough/react-native-camera/commits{/sha}","git_commits_url":"https://api.github.com/repos/lwansbrough/react-native-camera/git/commits{/sha}","comments_url":"https://api.github.com/repos/lwansbrough/react-native-camera/comments{/number}","issue_comment_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/comments{/number}","contents_url":"https://api.github.com/repos/lwansbrough/react-native-camera/contents/{+path}","compare_url":"https://api.github.com/repos/lwansbrough/react-native-camera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lwansbrough/react-native-camera/merges","archive_url":"https://api.github.com/repos/lwansbrough/react-native-camera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lwansbrough/react-native-camera/downloads","issues_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues{/number}","pulls_url":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls{/number}","milestones_url":"https://api.github.com/repos/lwansbrough/react-native-camera/milestones{/number}","notifications_url":"https://api.github.com/repos/lwansbrough/react-native-camera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lwansbrough/react-native-camera/labels{/name}","releases_url":"https://api.github.com/repos/lwansbrough/react-native-camera/releases{/id}","deployments_url":"https://api.github.com/repos/lwansbrough/react-native-camera/deployments","created_at":"2015-04-01T00:54:40Z","updated_at":"2016-03-23T05:45:11Z","pushed_at":"2016-03-21T19:51:26Z","git_url":"git://github.com/lwansbrough/react-native-camera.git","ssh_url":"git@github.com:lwansbrough/react-native-camera.git","clone_url":"https://github.com/lwansbrough/react-native-camera.git","svn_url":"https://github.com/lwansbrough/react-native-camera","homepage":"","size":389,"stargazers_count":869,"watchers_count":869,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":173,"mirror_url":null,"open_issues_count":76,"forks":173,"open_issues":76,"watchers":869,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/232"},"html":{"href":"https://github.com/lwansbrough/react-native-camera/pull/232"},"issue":{"href":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232"},"comments":{"href":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232/comments"},"review_comments":{"href":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/232/comments"},"review_comment":{"href":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/232/commits"},"statuses":{"href":"https://api.github.com/repos/lwansbrough/react-native-camera/statuses/4ab7a9d220f8f48809f0403e004b817b5649f064"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":195,"deletions":1,"changed_files":4}}