-
Notifications
You must be signed in to change notification settings - Fork 427
/
Copy pathRecommendPage.js
75 lines (65 loc) · 2.52 KB
/
RecommendPage.js
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/**
* Created by guoshuyu on 2017/11/10.
*/
import React, {Component} from 'react';
import {
View, Text, StatusBar
} from 'react-native';
import styles from "../style"
import loginActions from '../store/actions/login'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import EventItem from './widget/EventItem'
import CommonRowItem from './common/CommonRowItem'
import RepositoryItem from './widget/RepositoryItem'
import IssueItem from './widget/IssueHead'
/**
* 推荐
*/
class RecommendPage extends Component {
componentDidMount() {
}
componentWillUnmount() {
}
render() {
let {loginActions} = this.props;
return (
<View style={styles.mainBox}>
<StatusBar hidden={false} backgroundColor={'transparent'} translucent barStyle={'light-content'}/>
<EventItem
actionTime={"2017-11-17T07:58:31Z"}
actionUser={'CarGuo'}
actionUserPic={'https://avatars0.githubusercontent.com/u/27534854?s=64&v=4'}
actionMode={"publish"}
des={"asdfafdas"}
actionTarget={"GSYGitHubApp"}/>
<CommonRowItem
itemIcon={"sc-github"}
itemText={"介绍一下是什么"}
onClickFun={() => {
}}/>
<RepositoryItem
ownerName={"CarGuo"}
ownerPic={"https://avatars0.githubusercontent.com/u/27534854?s=64&v=4"}
repositoryName={"GSYGitHubApp"}
repositoryStar={""}
repositoryFork={""}
repositoryWatch={""}
repositoryType={"java"}
repositoryDes={"这是很长很长的简介!这是很长很长的简介!这是很长很长的简介!这是很长很长的简介!这是很长很长的简介!这是很长很长的简介!"}
/>
<IssueItem
actionTime={"2017-11-17T07:58:31Z"}
actionUser={'CarGuo'}
actionUserPic={'https://avatars0.githubusercontent.com/u/27534854?s=64&v=4'}
issueComment={"asdfafdas"}
commentCount={"222"}
issueTag={"GSYGitHubApp/ASDFASDFASDF"}/>
</View>
)
}
}
export default connect(state => ( {state}), dispatch => ({
loginActions: bindActionCreators(loginActions, dispatch)
})
)(RecommendPage)