1 页面间传递数据
页面1:
import Girl from './Girl';
export default class Boy extends Component{
constructor(props){
super(props);
this.state = {
word:''
}
}
render(){
return (
<View style={styles.container}>
<Text style={styles.text}>I am Boy</Text>
<Text style={styles.text}
onPress={()=>{
this.props.navigator.push({
component:Girl,
params:{