{"action":"created","issue":{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232","repository_url":"https://api.github.com/repos/lwansbrough/react-native-camera","labels_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232/comments","events_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232/events","html_url":"https://github.com/lwansbrough/react-native-camera/pull/232","id":142948512,"number":232,"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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-03-23T12:35:33Z","updated_at":"2016-04-27T11:11:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/pulls/232","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"},"body":"As you probably noticed, when the device has locked orientation or app is locked to a specific orientation, the snapshot rotation is broken. This happens because the orientation events are fired only when the orientation is unlocked. In this PR I am using the sensor information to get the actual device orientation. The hardware events are fired only once when capture method is called, in order to avoid battery drain or event queue overloading. I tested on on both iOS and droid and it works great. On iOS I took the PR done by @toriumi0118 and refactored it to fit the single event idea."},"comment":{"url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/comments/215052026","html_url":"https://github.com/lwansbrough/react-native-camera/pull/232#issuecomment-215052026","issue_url":"https://api.github.com/repos/lwansbrough/react-native-camera/issues/232","id":215052026,"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},"created_at":"2016-04-27T11:11:39Z","updated_at":"2016-04-27T11:11:39Z","body":"@sodik82 take a look at the answer I gave here https://github.com/lwansbrough/react-native-camera/issues/227\r\nRN's <Image> component should be able to show correctly the saved image."}}