Skip to content

Instantly share code, notes, and snippets.

@natew
Created December 5, 2014 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natew/a08b02555d4c1261d73a to your computer and use it in GitHub Desktop.
Save natew/a08b02555d4c1261d73a to your computer and use it in GitHub Desktop.
<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