Created
December 5, 2014 19:58
-
-
Save natew/a08b02555d4c1261d73a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ViewList initialStep={numRoutes - 2} noFakeTitleBar> | |
<View> | |
<DottedViewList touchStartBoundsX={{ from: 20, to: window.innerWidth - 20 }}> | |
<View title="Hot Articles"> | |
<List dontWrapChildren styles={{ self: { borderTop: 'none' } }}> | |
{articles.count() ? | |
articles.map((article, i) => | |
<ArticleItem cursor={article} key={i} /> | |
).toArray() | |
.concat( | |
<ListItem | |
style={{textAlign:'center'}} | |
onClick={this.handleLoadMore}> | |
Load More | |
</ListItem> | |
) : | |
<ListItem style={{textAlign: 'center'}}>Loading...</ListItem> | |
} | |
</List> | |
</View> | |
<View title="Top Articles" /> | |
</DottedViewList> | |
</View> | |
{hasChild && this.getRouteHandler({ key: subRouteKey })} | |
</ViewList> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment