import React, { Component } from 'react'; import { View, Text, Button } from 'react-native'; import Navigation from 'react-native-navigation'; class LifecycleScreen extends Component { constructor(props) { super(props); this.onClickPush = this.onClickPush.bind(this); this.state = { text: 'nothing yet' }; } onStart() { this.setState({ text: 'onStart!' }); } onStop() { alert('onStop!'); //eslint-disable-line } render() { return ( {this.state.text}