{"action":"created","issue":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/4034","repository_url":"https://api.github.com/repos/wix/react-native-navigation","labels_url":"https://api.github.com/repos/wix/react-native-navigation/issues/4034/labels{/name}","comments_url":"https://api.github.com/repos/wix/react-native-navigation/issues/4034/comments","events_url":"https://api.github.com/repos/wix/react-native-navigation/issues/4034/events","html_url":"https://github.com/wix/react-native-navigation/issues/4034","id":363932452,"node_id":"MDU6SXNzdWUzNjM5MzI0NTI=","number":4034,"title":"[V2] Screen orientation bug","user":{"login":"yusufyildirim","id":22980987,"node_id":"MDQ6VXNlcjIyOTgwOTg3","avatar_url":"https://avatars2.githubusercontent.com/u/22980987?v=4","gravatar_id":"","url":"https://api.github.com/users/yusufyildirim","html_url":"https://github.com/yusufyildirim","followers_url":"https://api.github.com/users/yusufyildirim/followers","following_url":"https://api.github.com/users/yusufyildirim/following{/other_user}","gists_url":"https://api.github.com/users/yusufyildirim/gists{/gist_id}","starred_url":"https://api.github.com/users/yusufyildirim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusufyildirim/subscriptions","organizations_url":"https://api.github.com/users/yusufyildirim/orgs","repos_url":"https://api.github.com/users/yusufyildirim/repos","events_url":"https://api.github.com/users/yusufyildirim/events{/privacy}","received_events_url":"https://api.github.com/users/yusufyildirim/received_events","type":"User","site_admin":false},"labels":[{"id":534815806,"node_id":"MDU6TGFiZWw1MzQ4MTU4MDY=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/platform:%20Android","name":"platform: Android","color":"bfdadc","default":false},{"id":951487988,"node_id":"MDU6TGFiZWw5NTE0ODc5ODg=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/type:%20accepted/bug","name":"type: accepted/bug","color":"c92736","default":false},{"id":602711689,"node_id":"MDU6TGFiZWw2MDI3MTE2ODk=","url":"https://api.github.com/repos/wix/react-native-navigation/labels/v2","name":"v2","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"guyca","id":12352397,"node_id":"MDQ6VXNlcjEyMzUyMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/12352397?v=4","gravatar_id":"","url":"https://api.github.com/users/guyca","html_url":"https://github.com/guyca","followers_url":"https://api.github.com/users/guyca/followers","following_url":"https://api.github.com/users/guyca/following{/other_user}","gists_url":"https://api.github.com/users/guyca/gists{/gist_id}","starred_url":"https://api.github.com/users/guyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyca/subscriptions","organizations_url":"https://api.github.com/users/guyca/orgs","repos_url":"https://api.github.com/users/guyca/repos","events_url":"https://api.github.com/users/guyca/events{/privacy}","received_events_url":"https://api.github.com/users/guyca/received_events","type":"User","site_admin":false},"assignees":[{"login":"guyca","id":12352397,"node_id":"MDQ6VXNlcjEyMzUyMzk3","avatar_url":"https://avatars2.githubusercontent.com/u/12352397?v=4","gravatar_id":"","url":"https://api.github.com/users/guyca","html_url":"https://github.com/guyca","followers_url":"https://api.github.com/users/guyca/followers","following_url":"https://api.github.com/users/guyca/following{/other_user}","gists_url":"https://api.github.com/users/guyca/gists{/gist_id}","starred_url":"https://api.github.com/users/guyca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyca/subscriptions","organizations_url":"https://api.github.com/users/guyca/orgs","repos_url":"https://api.github.com/users/guyca/repos","events_url":"https://api.github.com/users/guyca/events{/privacy}","received_events_url":"https://api.github.com/users/guyca/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/wix/react-native-navigation/milestones/1","html_url":"https://github.com/wix/react-native-navigation/milestone/1","labels_url":"https://api.github.com/repos/wix/react-native-navigation/milestones/1/labels","id":1914844,"node_id":"MDk6TWlsZXN0b25lMTkxNDg0NA==","number":1,"title":"2.x.x Complete Rewrite (full feature parity)","description":"Complete API redesign, react-native-controllers deprecation and merge, android and iOS redesign, (almost) complete feature parity, screen lifecycle, static Navigation commands, commands per screenId, complete test coverage","creator":{"login":"DanielZlotin","id":6660239,"node_id":"MDQ6VXNlcjY2NjAyMzk=","avatar_url":"https://avatars3.githubusercontent.com/u/6660239?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielZlotin","html_url":"https://github.com/DanielZlotin","followers_url":"https://api.github.com/users/DanielZlotin/followers","following_url":"https://api.github.com/users/DanielZlotin/following{/other_user}","gists_url":"https://api.github.com/users/DanielZlotin/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielZlotin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielZlotin/subscriptions","organizations_url":"https://api.github.com/users/DanielZlotin/orgs","repos_url":"https://api.github.com/users/DanielZlotin/repos","events_url":"https://api.github.com/users/DanielZlotin/events{/privacy}","received_events_url":"https://api.github.com/users/DanielZlotin/received_events","type":"User","site_admin":false},"open_issues":56,"closed_issues":326,"state":"open","created_at":"2016-08-01T07:15:56Z","updated_at":"2018-10-21T12:20:33Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2018-09-26T09:20:52Z","updated_at":"2018-10-22T13:29:41Z","closed_at":null,"author_association":"NONE","body":"### Issue Description\r\n\r\nThere is a bug which only appears on tab based apps (as far as I investigate). When we set the orientation option, it doesn't affect to the activity for the first time we open the app. Let me explain more.\r\n\r\nLet's assume we set layout object like this.\r\n```javascript\r\nlayout: {\r\n  backgroundColor: 'white',\r\n  orientation: ['portrait']\r\n}\r\n```\r\n\r\nThe expected behavior is prevent the app to switch to landscape mode, right? It doesn't happen for the first time unfortunately, screen does rotate wether we set orientation option or not. What I mean by \"first time\" is, the first time we open and see the tab based app. When we open the tab based app and switch to another tab or go to another screen and try again to rotate the screen, It doesn't rotate, whole app starts to act like we expected.\r\n\r\nSum: orientation option doesn't affect to the app when we start tab based app.\r\n\r\n### Steps to Reproduce / Code Snippets / Screenshots\r\n\r\n* Set default option { layout: { orientation: ['portrait'] } }\r\n* Start tab based app\r\n* Rotate the screen to landscape (it will rotate)\r\n* Rotate to portrait (optional)\r\n* Switch to another tab or go to another screen\r\n* Rotate again (it will not rotate as expected)\r\n\r\n---\r\n### Environment\r\n* React Native Navigation version: latest@v2\r\n* React Native version: 0.56\r\n* Platform(s) (iOS, Android, or both?): Android 8.1\r\n* Device info (Simulator/Device? OS version? Debug/Release?): Device, Debug\r\n"},"comment":{"url":"https://api.github.com/repos/wix/react-native-navigation/issues/comments/431836039","html_url":"https://github.com/wix/react-native-navigation/issues/4034#issuecomment-431836039","issue_url":"https://api.github.com/repos/wix/react-native-navigation/issues/4034","id":431836039,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTgzNjAzOQ==","user":{"login":"wjelen26","id":24300293,"node_id":"MDQ6VXNlcjI0MzAwMjkz","avatar_url":"https://avatars3.githubusercontent.com/u/24300293?v=4","gravatar_id":"","url":"https://api.github.com/users/wjelen26","html_url":"https://github.com/wjelen26","followers_url":"https://api.github.com/users/wjelen26/followers","following_url":"https://api.github.com/users/wjelen26/following{/other_user}","gists_url":"https://api.github.com/users/wjelen26/gists{/gist_id}","starred_url":"https://api.github.com/users/wjelen26/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjelen26/subscriptions","organizations_url":"https://api.github.com/users/wjelen26/orgs","repos_url":"https://api.github.com/users/wjelen26/repos","events_url":"https://api.github.com/users/wjelen26/events{/privacy}","received_events_url":"https://api.github.com/users/wjelen26/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T13:29:41Z","updated_at":"2018-10-22T13:29:41Z","author_association":"NONE","body":"@jinshin1013 I have exactly the same issue with `topBar` `elevation` property. But for example `statusBar` options property works properly for me on Android."}}
{"actor":{"display_login":"wjelen26"}}