-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathNodeCell.js
More file actions
44 lines (36 loc) · 719 Bytes
/
Copy pathNodeCell.js
File metadata and controls
44 lines (36 loc) · 719 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
'use strict';
var React = require('react-native');
var {
StyleSheet,
Text,
View,
Image,
TouchableHighlight
} = React;
var NodeCell = React.createClass({
render () {
var item = this.props.item;
return (
<TouchableHighlight underlayColor="#f1f1f1" onPress={ this.props.gotoNodeList }>
<View style={[styles.container, styles.item]}>
<Text style={styles.text}>{ item.title }</Text>
</View>
</TouchableHighlight>
);
}
});
var styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: 'row',
alignItems: 'center',
},
item: {
height: 40,
paddingLeft: 10
},
text: {
fontSize: 15
}
});
module.exports = NodeCell;