react-native-gallery icon indicating copy to clipboard operation
react-native-gallery copied to clipboard

安卓下这个插件加在modal时,在滚动未完成,按返回或其他操作卸载modal,应用闪退!crash when press back button to close modal while scrolling in android

Open waynehong opened this issue 9 years ago • 2 comments

安卓下这个插件加在modal时,在滚动未完成,按返回或其他操作卸载modal,应用闪退!

undefined is not an object(evaluating 'this.refs['innerListView'].scrollTo')

ViewPager.js:61

computeScrollOffset Scroller.js:203

callTimer JSTimerExecution.js:97 ......

waynehong avatar Dec 25 '16 13:12 waynehong

@waynehong I am also getting this issue. did you find any solution?

vivekparekh8 avatar Feb 27 '17 18:02 vivekparekh8

@vivekparekh8 yes,you need to check whether this.refs['innerListView'] exist or not, at node_modules -> @Idn0x7dc -> react-native-view-pager -> library -> ViewPager.js .line 61.

if(!this.refs['innerListView']){ }else{ this.refs['innerListView'].scrollTo({x: curX, animated: false}); }

waynehong avatar Feb 28 '17 05:02 waynehong