From 70101afd1e93c9b11eaf80a8bd90e6ec39f9d2ff Mon Sep 17 00:00:00 2001 From: guoshuyu Date: Wed, 23 May 2018 15:21:41 +0800 Subject: [PATCH] fix IssueDetailPage more item --- app/components/IssueDetailPage.js | 2 ++ app/components/RepositoryIssueListPage.js | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/components/IssueDetailPage.js b/app/components/IssueDetailPage.js index 1faf213..9230b21 100644 --- a/app/components/IssueDetailPage.js +++ b/app/components/IssueDetailPage.js @@ -229,7 +229,9 @@ class IssueDetailPage extends Component { this.setState({ dataSource: dataList }); + Actions.refresh({titleData: res.data}); } + return res.next(); }) .then((res) => { diff --git a/app/components/RepositoryIssueListPage.js b/app/components/RepositoryIssueListPage.js index 7d1899d..b2e052d 100644 --- a/app/components/RepositoryIssueListPage.js +++ b/app/components/RepositoryIssueListPage.js @@ -19,6 +19,7 @@ import {getFullName} from '../utils/htmlUtils' import Icon from 'react-native-vector-icons/Ionicons' import * as Config from '../config' import CommonBottomBar from "./common/CommonBottomBar"; +import {CommonMoreRightBtnPress} from '../utils/actionUtils' /** * 仓库issue列表 @@ -123,10 +124,15 @@ class RepositoryIssueListPage extends Component { issueTag={"#" + rowData.number} onPressItem={() => { Actions.IssueDetail({ + iconType:2, + rightBtn: 'ios-more', needRightBtn: true, issue: rowData, title: fullName, repositoryName: this.props.repositoryName, - userName: this.props.userName + userName: this.props.userName, + rightBtnPress: (params) => { + return CommonMoreRightBtnPress(params) + } }) }}/> )