合并了资讯组件与信息组件。review by shixiang。
Showing
2 changed files
with
7 additions
and
8 deletions
@@ -68,7 +68,7 @@ export default class BrandArticleList extends Component { | @@ -68,7 +68,7 @@ export default class BrandArticleList extends Component { | ||
68 | 68 | ||
69 | <ListView | 69 | <ListView |
70 | contentContainerStyle={styles.contentContainer} | 70 | contentContainerStyle={styles.contentContainer} |
71 | - dataSource={this.dataSource.cloneWithRows(articleList.toArray())} | 71 | + dataSource={this.dataSource.cloneWithRows(articleList)} |
72 | renderRow={this._renderRow} | 72 | renderRow={this._renderRow} |
73 | enableEmptySections = {true} | 73 | enableEmptySections = {true} |
74 | renderSeparator={this._renderSeparator} | 74 | renderSeparator={this._renderSeparator} |
@@ -145,13 +145,12 @@ class DetailContainer extends Component { | @@ -145,13 +145,12 @@ class DetailContainer extends Component { | ||
145 | /> | 145 | /> |
146 | ); | 146 | ); |
147 | case 'articleList': | 147 | case 'articleList': |
148 | - return null; | ||
149 | - // return( | ||
150 | - // <BrandArticleList | ||
151 | - // articleList={detail.get('articleList')} | ||
152 | - // onPressArticle={this._onPressArticle} | ||
153 | - // onPressArticleLike={this._onPressArticleLike} /> | ||
154 | - // ) | 148 | + return( |
149 | + <BrandArticleList | ||
150 | + articleList={rowData} | ||
151 | + onPressArticle={this._onPressArticle} | ||
152 | + onPressArticleLike={this._onPressArticleLike} /> | ||
153 | + ); | ||
155 | default: | 154 | default: |
156 | return null; | 155 | return null; |
157 | 156 |
-
Please register or login to post a comment