Permalink
Browse files

add list-view ref, fix #488

  • Loading branch information...
warmhug committed Nov 7, 2016
1 parent 0e1e917 commit 2e32956d405880f2fdca3cc88cd7c3b1b7784b7f
Showing with 2 additions and 1 deletion.
  1. +1 −0 components/list-view/Indexed.web.tsx
  2. +1 −1 components/list-view/index.web.tsx
@@ -14,6 +14,7 @@ export default class MIndexedList extends React.Component<tsPropsType, any> {
const { restProps, extraProps } = handleProps(this.props, true);
return (
<IndexedList
ref="indexedList"
sectionHeaderClassName="am-indexed-list-section-header am-list-body"
sectionBodyClassName="am-indexed-list-section-body am-list-body"
{...restProps}
@@ -17,6 +17,6 @@ export default class ListView extends React.Component<tsPropsType, any> {
if (refreshControl) {
useZscroller = true;
}
return <MListView {...restProps} {...extraProps} useZscroller={useZscroller} />;
return <MListView ref="listview" {...restProps} {...extraProps} useZscroller={useZscroller} />;
}
}

0 comments on commit 2e32956

Please sign in to comment.