StackNavigator(2)

/**

  • Sample React Native App
  • https://github.com/facebook/react-native
  • @flow
    */

import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
AlertIOS,
} from 'react-native';

export default class TDemo extends Component {

static navigationOptions = ({ navigation }) => ({
title: 我是${navigation.state.params.user}
});
render() {
const { params } = this.props.navigation.state;
return (Chat with {params.user});
}
}

你可能感兴趣的:(StackNavigator(2))