just4fun / stuhome

:iphone: An iOS client for https://bbs.uestc.edu.cn/ written in react-native, redux and redux-observable. (Retired)
https://www.notion.so/iOS-18468e4a446b49ab8bb8c35d1559d4b5
249 stars 62 forks source link

列表下拉刷新有bug #1

Closed waltcow closed 8 years ago

waltcow commented 8 years ago

列表下拉刷新,停着不放,列表会出现闪动

just4fun commented 8 years ago

你好,

那是组件react-native-refreshable-listview的一个known issue,可以参考这里

目前FB官方没有提供refreshable的listview,所以只能找社区实现的版本。

不过这个组件已经有一些PR想解决这个问题,作者也给了回复表示正在working on new branch for this。

另外社区也有这个组件的替代品,没有这个issue,但因为我这个repo还在持续实现bbs的功能,所以暂时没有替换组件或者refactor的打算。后续应该会在react-native-refreshable-listview新版本release后进行升级。

感谢关注。

waltcow commented 8 years ago

感谢告知

zackyang000 commented 8 years ago

f7f593d9211181b3f55c0a0c2dcf82a4

zyu commented 8 years ago

npm install 的时候停在 react-tools aft 哪里就不动了

just4fun commented 8 years ago

@zyu 尝试淘宝的npm镜像吧,安装会快一些。

just4fun commented 8 years ago

Hey all,

I will close this issue once react-native-refreshable-listview publish 2.0 final release.

Thank you.

zackyang000 commented 8 years ago

d240621ff4f0b7fc3314092a4964a04c

zyu commented 8 years ago

能否给一个测试的帐号啊

2016-02-25 16:26 GMT+08:00 Zack Yang notifications@github.com:

[image: d240621ff4f0b7fc3314092a4964a04c] https://cloud.githubusercontent.com/assets/3007674/13313912/90218b32-dbdc-11e5-9fcc-c04a85106e22.png

— Reply to this email directly or view it on GitHub https://github.com/just4fun/uestc-bbs-react-native/issues/1#issuecomment-188667549 .

just4fun commented 8 years ago

@zyu ,这个确实有点为难,论坛账号是跟学号绑定的,不敢随便提供。 不过我在todo list里加了一项fixture data/mock data,等这个完成后就可以测试了。

just4fun commented 8 years ago

@waltcow

Sorry for the too delayed update, I just replaced 3rd party refreshable listview component with React Native built-in component RefreshControl (which is released via v0.18.0, and I upgraded RN from v0.14.0 to v0.21.0 several weeks ago), you can refer this commit and pull latest code to try it out.

Close this issue as fixed.

Chaunjie commented 8 years ago

@just4fun image这个pull to refresh文本怎么替换的

just4fun commented 8 years ago

@xudao520 我用的FB提供的RefreshControl,请参考官方文档。

Chaunjie commented 8 years ago

@just4fun 那你没有用ListView?

just4fun commented 8 years ago

@xudao520 https://github.com/just4fun/uestc-bbs-react-native/blob/master/app/components/TopicList.js#L82-L100 http://facebook.github.io/react-native/docs/refreshcontrol.html

还是先把官方文档读一遍吧。

Chaunjie commented 8 years ago

@just4fun 谢谢,我应该去看下英文文档的,一直在看中文文档才这么认为

just4fun commented 8 years ago

@xudao520 前端的东西都不要看中文文档。

Chaunjie commented 8 years ago

@just4fun 对的,踩坑了