-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfileScreen.js
More file actions
39 lines (35 loc) · 1.03 KB
/
ProfileScreen.js
File metadata and controls
39 lines (35 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//@Time : 2018/6/15
//@Author : lidong
//@Email : lidong@hlchang.cn
//@File : ProfileScreen.js
//@Software: webstrom
//@license : 娱网科道信息技术有限公司 copyright 2016-2017
import React ,{Component} from 'react';
import {View,Button,Text,StyleSheet} from 'react-native';
import {StackNavigator} from "react-navigation";
export default class ProfileScreen extends React.Component{
static navigationOptios={
title:'聊天',
headerTitle:'sddsd'
};
render(){
const {navigate} = this.props.navigation;
const {params} = this.props.navigation.state;
return(
<View>
<Text style={styles.container}>welcom to watch {params.name}</Text>
<Button
onPress={()=>this.props.navigation.goBack()}
title="点击返回"
/>
</View>
)
}
}
const styles = StyleSheet.create({
container:{
fontSize:30,
textAlign:'center',
color:'red'
}
});