FaridSafi / react-native-gifted-listview

✌️ ListView with pull-to-refresh and infinite scrolling for Android and iOS React-Native apps
MIT License
1.62k stars 291 forks source link

请问如何实现向上拖动刷新呢?不需要点击 "load more"?? #69

Open gongchao opened 8 years ago

gongchao commented 8 years ago

有实现 listView 的 onEndReached 的吗?

gongchao commented 8 years ago

感谢作者!

kokororin commented 8 years ago

34

gongchao commented 8 years ago

@kokororin 感谢🙏

iamdurui commented 7 years ago

@gongchao 你实现了吗?我怎么用起来给我报错。。报的是undefined is not an object (evaluating 'this.refs.listView'),用的就是34楼给的代码。。

shangcongrong commented 7 years ago

@iamdurui 我也遇到了你的问题,应该是你所用的this的问题,你代码中的那个this并不能调用onEndReach方法,你可以重新定义一个上下文就好了。

iamdurui commented 7 years ago

@shangcongrong 谢谢,我前天就搞定了,排查了一下。。。

luomouren commented 7 years ago

@iamdurui是怎么实现的呀?能贴下代码吗?谢谢