{"action":"closed","issue":{"url":"https://api.github.com/repos/yamill/react-native-orientation/issues/23","labels_url":"https://api.github.com/repos/yamill/react-native-orientation/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/yamill/react-native-orientation/issues/23/comments","events_url":"https://api.github.com/repos/yamill/react-native-orientation/issues/23/events","html_url":"https://github.com/yamill/react-native-orientation/issues/23","id":122850015,"number":23,"title":"Differentiate PORTRAIT with UPSIDEDOWN in addOrientationListener","user":{"login":"pangers","id":7816958,"avatar_url":"https://avatars.githubusercontent.com/u/7816958?v=3","gravatar_id":"","url":"https://api.github.com/users/pangers","html_url":"https://github.com/pangers","followers_url":"https://api.github.com/users/pangers/followers","following_url":"https://api.github.com/users/pangers/following{/other_user}","gists_url":"https://api.github.com/users/pangers/gists{/gist_id}","starred_url":"https://api.github.com/users/pangers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pangers/subscriptions","organizations_url":"https://api.github.com/users/pangers/orgs","repos_url":"https://api.github.com/users/pangers/repos","events_url":"https://api.github.com/users/pangers/events{/privacy}","received_events_url":"https://api.github.com/users/pangers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-18T00:09:09Z","updated_at":"2015-12-21T16:13:26Z","closed_at":"2015-12-21T16:13:26Z","body":"As the title says. \r\n\r\nAs I am creating my React Native app, I have different layouts shown to the user when the phone is in portrait and landscape. When I set 'unlockAllOrientations' for a particular screen I am seeing the expected layouts for portrait (home button at bottom) and landscape. However, when I rotate the phone upside down, the layout is completely mangled.\r\n\r\nIt is showing the portrait layout but with a 90 degree rotation (as if the app was in landscape) resulting in a buggy and ugly looking screen. I thought this might be a problem because in my XCode project I had unchecked the 'Upside Down' Device Orientation setting. So I turned it on and tried and again and I saw the same problem. My expected result was the portrait layout shown exactly as in the portrait orientation (with home button at bottom).\r\n\r\nIt looks like a react native app is prevented from being in the upside down orientation (can anyone confirm this?) whether or not the option is checked in XCode. After commenting out line 72 of RCTOrientation/Orientation.m my problem was instantly fixed.\r\n\r\nAs a result I propose to differentiate PORTRAIT with UPSIDEDOWN in addOrientationListener and anywhere else where it is appropriate in this library. \r\n\r\nWhat do you think @yamill ? I can make a pull request if you approve of this change."}}