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

RefreshControl "Spinner" Animation Problem [iOS]

Open daesan opened this issue 10 years ago • 8 comments

When I pull down the ListView with RefreshControl the first time, "spinner appearing" animation works as expected. However, from the second time on, if I pull down the ListView, "spinner appearing" animation gets delayed for some reason. (You have to pull down much further for "spinner" to start to appear.)

See the images attached below.

ptr_first ptr_second

By the way, thanks a lot for implementing this feature. I was pulling my hair all out to implement this in JS.

daesan avatar Jan 26 '16 14:01 daesan

Hey daesan, thanks for reporting this issue!

React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.

  • If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
  • If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
  • We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!

facebook-github-bot avatar Jan 26 '16 14:01 facebook-github-bot

+1

I experience the same problem - it was also present in the old onRefreshStart implementation

davidskaarup avatar Feb 24 '16 15:02 davidskaarup

I have done a bit of testing, and the problem seems to occur when all the items in the listview have not been loaded, i.e. by using initialListSize. If all elements are loaded by scrolling to the bottom of the list it works fine.

davidskaarup avatar Feb 24 '16 23:02 davidskaarup

@davidskaarup Hi. I removed "initialListSize" from ListView and the problem went away. Thanks for sharing the tip!

daesan avatar Feb 25 '16 06:02 daesan

Well it's a workaround, but optimally you should be able to use initialListSize without the spinner acting up. Can you reopen the issue so hopefully someone looks into it?

davidskaarup avatar Feb 25 '16 08:02 davidskaarup

Sure. From what I can tell, ListView performance has improved quite a bit in the past months that I don't think I really need to use initialListSize anymore on my app. But as you said, it is a workaround. I will keep this issue open.

daesan avatar Feb 25 '16 09:02 daesan

@daesan Should be fixed in 102a31c13eed82432b3e0d93230653394f7baa3d. Can you check if it works now with [email protected]?

janicduplessis avatar Mar 21 '16 00:03 janicduplessis

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/refreshcontrol-spinner-animation-problem-ios

ProductPains helps the community prioritize the most important issues thanks to its voting feature. It is easy to use - just login with GitHub. GitHub issues have voting too, nevertheless Product Pains has been very useful in highlighting the top bugs and feature requests: https://productpains.com/product/react-native?tab=top

Also, if this issue is a bug, please consider sending a pull request with a fix. We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

mkonicek avatar Jul 29 '16 23:07 mkonicek