SystemMessage.js
1019 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
'use strict';
import React from 'react';
import ReactNative from 'react-native';
const {
View,
Text,
Image,
TextInput,
StyleSheet,
Platform,
Dimensions,
} = ReactNative;
export default class SystemMessage extends React.Component {
static propTypes = {
userInfo: React.PropTypes.shape({
name: React.PropTypes.string,
sign: React.PropTypes.string,
}),
}
constructor(props) {
super(props);
}
_renderSeparator() {
return (
<View style={styles.separator}/>
);
}
render() {
return (
<View style={styles.container}>
<Text>系统消息</Text>
</View>
);
}
}
let {width, height} = Dimensions.get('window');
let navbarHeight = (Platform.OS === 'android') ? 50 : 64;
let styles = StyleSheet.create({
container: {
top: navbarHeight,
height: height-navbarHeight,
backgroundColor: 'white',
},
});