import React, {Component} from 'react'; import { Text, View, ScrollView, TouchableOpacity, StyleSheet } from 'react-native'; export default class PushedScreen extends Component { static navigatorStyle = { drawUnderTabBar: true }; constructor(props) { super(props); } render() { return ( Push Plain Screen Push Styled Screen Pop Screen Pop To Root Reset To ); } onPushPress() { this.props.navigator.push({ title: "More", container: "example.PushedScreen" }); } onPushStyledPress() { this.props.navigator.push({ title: "More", container: "com.example.StyledScreen" }); } onPopPress() { this.props.navigator.pop(); } onPopToRootPress() { this.props.navigator.popToRoot(); } onResetToPress() { this.props.navigator.resetTo({ title: "New Root", container: "com.example.ThirdTabScreen" }); } } const styles = StyleSheet.create({ container: { flex: 1, padding: 20, backgroundColor: 'white' }, button: { textAlign: 'center', fontSize: 18, marginBottom: 10, marginTop:10, color: 'blue' } });