From a55faef0ce611997a4b41ad29940a9901a65386f Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Mon, 8 Feb 2016 17:55:06 -0800 Subject: [PATCH] Add and tweak ListView wrapper methods --- react-native/listview.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/react-native/listview.js b/react-native/listview.js index b7d2d0ab..bf826c3a 100644 --- a/react-native/listview.js +++ b/react-native/listview.js @@ -167,8 +167,12 @@ class ListView extends React.Component { return item ? props.renderRow(item, sectionId, rowId, ...args) : null; } - scrollTo(x, y, ...extra) { - this.refs.listView.scrollTo(x, y, ...extra); + getInnerViewNode() { + return this.refs.listView.getInnerViewNode(); + } + + scrollTo(...args) { + this.refs.listView.scrollTo(...args); } setNativeProps(props) {