{"action":"closed","issue":{"url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/54","labels_url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/54/comments","events_url":"https://api.github.com/repos/Kureev/react-native-navbar/issues/54/events","html_url":"https://github.com/Kureev/react-native-navbar/issues/54","id":95365631,"number":54,"title":"componentWillUnmount and componentDidUnmount not working for renderScene components","user":{"login":"hmm29","id":6777880,"avatar_url":"https://avatars.githubusercontent.com/u/6777880?v=3","gravatar_id":"","url":"https://api.github.com/users/hmm29","html_url":"https://github.com/hmm29","followers_url":"https://api.github.com/users/hmm29/followers","following_url":"https://api.github.com/users/hmm29/following{/other_user}","gists_url":"https://api.github.com/users/hmm29/gists{/gist_id}","starred_url":"https://api.github.com/users/hmm29/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmm29/subscriptions","organizations_url":"https://api.github.com/users/hmm29/orgs","repos_url":"https://api.github.com/users/hmm29/repos","events_url":"https://api.github.com/users/hmm29/events{/privacy}","received_events_url":"https://api.github.com/users/hmm29/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Kureev/react-native-navbar/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-16T07:03:13Z","updated_at":"2015-07-20T01:14:02Z","closed_at":"2015-07-20T01:14:02Z","body":"Hi Kureev, I have a component for the renderScene called Settings\r\n\r\n```javascript\r\nthis.props.navigate({\r\n            component: Settings,\r\n            navigationBar: <NavigationBar\r\n                title=\"Settings\"\r\n                customPrev={<MenuIcon/>}\r\n                customNext={<ProfileIcon/>}\r\n                />  \r\n});\r\n```\r\n\r\nEvery time I try to use the componentDidMount and componentWillUnmount functions for the Settings component itself it doesn't work.\r\n\r\n```javascript\r\nvar Settings = React.createClass({\r\n   getInitialState() {\r\n        return {\r\n            phrase: \"Hello\"\r\n        };\r\n   },\r\n    [...]\r\n  componentDidMount() {\r\n     console.log('Did Mount');\r\n   },\r\n  componentWillUnmount() {\r\n     console.log('Will Unmount');\r\n   },\r\n  componentDidUnmount() {\r\n    console.log('Did Unmount');\r\n   },\r\n    render() {\r\n        return (\r\n          <View style={styles.container}>\r\n            <View style={styles.section}>\r\n                <Text>{this.state.phrase}</Text>\r\n            </View>\r\n          </View>\r\n        );\r\n    }\r\n});\r\n```\r\n\r\nas you can imagine, the componentDidUnmount and componentDidUnmount functions don't work for settings or any of the other components rendered with renderScene. \r\nAny insights?\r\n\r\nI am using react-native v0.7.1 and react-native-navbar v0.6.0. Thanks"}}