const React = require('react'); const { Component } = require('react'); const { Navigation } = require('react-native-navigation'); const { View, Text, Button, BackHandler } = require('react-native'); class BackHandlerScreen extends Component { static get options() { return { topBar: { title: { text: 'Back Handler', color: 'black', fontSize: 16 } } }; } constructor(props) { super(props); this.backHandler = () => { this.setState({ backPress: 'Back button pressed!' }); return true; }; this.state = { backPress: '' }; } render() { return ( {`Back Handler Screen`} {this.state.backPress}