Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: scrolling the modal with country flags enabled prints 'Task orphaned' warnings #297

Closed
GabrielePrestifilippo opened this issue Jan 16, 2020 · 1 comment
Labels

Comments

@GabrielePrestifilippo
Copy link

Issue Description

When scrolling the modal with the list of countries and their flags, iOS prints out several warnings of the type:
Task orphaned for request <NSMutableURLRequest: [[SOME_HEX_CODE]]> { URL: [[IMG_URL]] }.

This is due to the virtual list which unmounts quickly the components being rendered.
(Some more info can be found in react-native#12152)

This could be solved with an appropriate caching mechanism. As of now, the react-native Image implementation has some flaws related.

I tried using a FastImage which has a better native implementation and the problem gets solved.

Would you consider using a 3rd party dependency as FastImage to replace the Image component?

Additional Information

  • React Native version: 0.61.5
  • react-native-country-picker-modal version: 1.10.0
  • Platform(s): iOS
@stale
Copy link

stale bot commented Feb 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 15, 2020
@stale stale bot closed this as completed Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant