{"action":"closed","issue":{"url":"https://api.github.com/repos/react-navigation/react-navigation/issues/3446","repository_url":"https://api.github.com/repos/react-navigation/react-navigation","labels_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/3446/labels{/name}","comments_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/3446/comments","events_url":"https://api.github.com/repos/react-navigation/react-navigation/issues/3446/events","html_url":"https://github.com/react-navigation/react-navigation/issues/3446","id":294880784,"number":3446,"title":"willBlur/didBlur not fired on initial StackNavigator screen","user":{"login":"thebnich","id":1093266,"avatar_url":"https://avatars3.githubusercontent.com/u/1093266?v=4","gravatar_id":"","url":"https://api.github.com/users/thebnich","html_url":"https://github.com/thebnich","followers_url":"https://api.github.com/users/thebnich/followers","following_url":"https://api.github.com/users/thebnich/following{/other_user}","gists_url":"https://api.github.com/users/thebnich/gists{/gist_id}","starred_url":"https://api.github.com/users/thebnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thebnich/subscriptions","organizations_url":"https://api.github.com/users/thebnich/orgs","repos_url":"https://api.github.com/users/thebnich/repos","events_url":"https://api.github.com/users/thebnich/events{/privacy}","received_events_url":"https://api.github.com/users/thebnich/received_events","type":"User","site_admin":false},"labels":[{"id":526653628,"url":"https://api.github.com/repos/react-navigation/react-navigation/labels/bug","name":"bug","color":"e74c3c","default":true}],"state":"closed","locked":false,"assignee":{"login":"ericvicenti","id":1483597,"avatar_url":"https://avatars1.githubusercontent.com/u/1483597?v=4","gravatar_id":"","url":"https://api.github.com/users/ericvicenti","html_url":"https://github.com/ericvicenti","followers_url":"https://api.github.com/users/ericvicenti/followers","following_url":"https://api.github.com/users/ericvicenti/following{/other_user}","gists_url":"https://api.github.com/users/ericvicenti/gists{/gist_id}","starred_url":"https://api.github.com/users/ericvicenti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericvicenti/subscriptions","organizations_url":"https://api.github.com/users/ericvicenti/orgs","repos_url":"https://api.github.com/users/ericvicenti/repos","events_url":"https://api.github.com/users/ericvicenti/events{/privacy}","received_events_url":"https://api.github.com/users/ericvicenti/received_events","type":"User","site_admin":false},"assignees":[{"login":"ericvicenti","id":1483597,"avatar_url":"https://avatars1.githubusercontent.com/u/1483597?v=4","gravatar_id":"","url":"https://api.github.com/users/ericvicenti","html_url":"https://github.com/ericvicenti","followers_url":"https://api.github.com/users/ericvicenti/followers","following_url":"https://api.github.com/users/ericvicenti/following{/other_user}","gists_url":"https://api.github.com/users/ericvicenti/gists{/gist_id}","starred_url":"https://api.github.com/users/ericvicenti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericvicenti/subscriptions","organizations_url":"https://api.github.com/users/ericvicenti/orgs","repos_url":"https://api.github.com/users/ericvicenti/repos","events_url":"https://api.github.com/users/ericvicenti/events{/privacy}","received_events_url":"https://api.github.com/users/ericvicenti/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-02-06T19:18:06Z","updated_at":"2018-02-06T20:56:39Z","closed_at":"2018-02-06T20:56:39Z","author_association":"NONE","body":"I have a minimal `StackNavigator` like so:\r\n```\r\nconst Navigator = StackNavigator({\r\n  First: { screen: FirstScreen },\r\n  Second: { screen: SecondScreen },\r\n});\r\n```\r\n\r\nIn `FirstScreen`, I register listeners in `componentDidMount`:\r\n```\r\ncomponentDidMount() {\r\n  this.props.navigation.addListener('willBlur', () => console.log('willBlur'));\r\n  this.props.navigation.addListener('didBlur', () => console.log('didBlur'));\r\n}\r\n```\r\n\r\n`FirstScreen` also has a `Button` that navigates to `SecondScreen` using:\r\n```\r\nthis.navigate('Second');\r\n```\r\n\r\nWhen `SecondScreen` is pushed, neither `willBlur` nor `didBlur` are fired the first time I leave `FirstScreen`. If I navigate back and press it again, `willBlur` and `didBlur` are fired as expected thereafter.\r\n\r\nUsing `react-navigation` 1.0.0-beta.30 and `react-native` 0.52.0."}}
{"actor":{"display_login":"brentvatne"}}