Skip to content

Instantly share code, notes, and snippets.

@DownChapel
Last active March 12, 2016 14:07
Show Gist options
  • Save DownChapel/f3c8fbdc0f5abd8b6906 to your computer and use it in GitHub Desktop.
Save DownChapel/f3c8fbdc0f5abd8b6906 to your computer and use it in GitHub Desktop.
componentWillUnmount in React Native Redux NavigationExperimental
class FirstScreen extends Component {
componentDidMount() {
console.log("First componentDidMount");
}
componentWillUnmount() {
console.log("First componentWillUnmount");
}
render() {
return (
<View style={styles.container}>
<Text style={styles.title}>First Screen</Text>
<NavButton destLabel="Second" buttonHandler={this.props.onButtonPress} />
</View>
)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment