From a9b5244a2408bd3a4fd3321daea69ce7be8ac082 Mon Sep 17 00:00:00 2001 From: tinylpc Date: Fri, 6 Jan 2017 12:00:40 +0800 Subject: [PATCH] add method for change dataSource reset indicator --- ViewPager.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ViewPager.js b/ViewPager.js index b0709ed..c1fe770 100644 --- a/ViewPager.js +++ b/ViewPager.js @@ -217,6 +217,13 @@ var ViewPager = React.createClass({ } }, + setCurrentPageZero(){ + this.setState({ + currentPage: 0, + viewWidth: 0, + }) + }, + getCurrentPage() { return this.state.currentPage; },