{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/14867","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/14867/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/14867/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/14867/events","html_url":"https://github.com/facebook/react-native/pull/14867","id":240963958,"number":14867,"title":"Fix Viewpager on Android when using native navigation.","user":{"login":"ruiaraujo","id":303833,"avatar_url":"https://avatars2.githubusercontent.com/u/303833?v=4","gravatar_id":"","url":"https://api.github.com/users/ruiaraujo","html_url":"https://github.com/ruiaraujo","followers_url":"https://api.github.com/users/ruiaraujo/followers","following_url":"https://api.github.com/users/ruiaraujo/following{/other_user}","gists_url":"https://api.github.com/users/ruiaraujo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruiaraujo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruiaraujo/subscriptions","organizations_url":"https://api.github.com/users/ruiaraujo/orgs","repos_url":"https://api.github.com/users/ruiaraujo/repos","events_url":"https://api.github.com/users/ruiaraujo/events{/privacy}","received_events_url":"https://api.github.com/users/ruiaraujo/received_events","type":"User","site_admin":false},"labels":[{"id":196858975,"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7","default":false},{"id":172176599,"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"satya164","id":1174278,"avatar_url":"https://avatars2.githubusercontent.com/u/1174278?v=4","gravatar_id":"","url":"https://api.github.com/users/satya164","html_url":"https://github.com/satya164","followers_url":"https://api.github.com/users/satya164/followers","following_url":"https://api.github.com/users/satya164/following{/other_user}","gists_url":"https://api.github.com/users/satya164/gists{/gist_id}","starred_url":"https://api.github.com/users/satya164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satya164/subscriptions","organizations_url":"https://api.github.com/users/satya164/orgs","repos_url":"https://api.github.com/users/satya164/repos","events_url":"https://api.github.com/users/satya164/events{/privacy}","received_events_url":"https://api.github.com/users/satya164/received_events","type":"User","site_admin":false},"assignees":[{"login":"satya164","id":1174278,"avatar_url":"https://avatars2.githubusercontent.com/u/1174278?v=4","gravatar_id":"","url":"https://api.github.com/users/satya164","html_url":"https://github.com/satya164","followers_url":"https://api.github.com/users/satya164/followers","following_url":"https://api.github.com/users/satya164/following{/other_user}","gists_url":"https://api.github.com/users/satya164/gists{/gist_id}","starred_url":"https://api.github.com/users/satya164/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satya164/subscriptions","organizations_url":"https://api.github.com/users/satya164/orgs","repos_url":"https://api.github.com/users/satya164/repos","events_url":"https://api.github.com/users/satya164/events{/privacy}","received_events_url":"https://api.github.com/users/satya164/received_events","type":"User","site_admin":false}],"milestone":null,"comments":27,"created_at":"2017-07-06T13:52:50Z","updated_at":"2018-02-08T08:28:48Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/14867","html_url":"https://github.com/facebook/react-native/pull/14867","diff_url":"https://github.com/facebook/react-native/pull/14867.diff","patch_url":"https://github.com/facebook/react-native/pull/14867.patch"},"body":"See the \"broken\" video attached to really understand the problem easily.\r\n\r\nOn Android after navigating to any other screen using wix navigation library, the native viewpager would lose the settling page behaviour which is quite annoying for the users.\r\n\r\nThis is caused by the onAttachedToWindow that resets mFirstLayout to true inside ViewPager. By request another layout pass, everything works as expected.\r\n\r\nWorking video is the application with patched RN.\r\n\r\n[broken.mp4](https://github.com/facebook/react-native/files/1128028/broken.mp4.zip)\r\n[working.mp4](https://github.com/facebook/react-native/files/1128032/working.mp4.zip)"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/364037666","html_url":"https://github.com/facebook/react-native/pull/14867#issuecomment-364037666","issue_url":"https://api.github.com/repos/facebook/react-native/issues/14867","id":364037666,"user":{"login":"ruiaraujo","id":303833,"avatar_url":"https://avatars2.githubusercontent.com/u/303833?v=4","gravatar_id":"","url":"https://api.github.com/users/ruiaraujo","html_url":"https://github.com/ruiaraujo","followers_url":"https://api.github.com/users/ruiaraujo/followers","following_url":"https://api.github.com/users/ruiaraujo/following{/other_user}","gists_url":"https://api.github.com/users/ruiaraujo/gists{/gist_id}","starred_url":"https://api.github.com/users/ruiaraujo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruiaraujo/subscriptions","organizations_url":"https://api.github.com/users/ruiaraujo/orgs","repos_url":"https://api.github.com/users/ruiaraujo/repos","events_url":"https://api.github.com/users/ruiaraujo/events{/privacy}","received_events_url":"https://api.github.com/users/ruiaraujo/received_events","type":"User","site_admin":false},"created_at":"2018-02-08T08:28:48Z","updated_at":"2018-02-08T08:28:48Z","author_association":"NONE","body":"@hramos done!"}}
{"actor":{"display_login":"ruiaraujo"}}