question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

view recycling and "prepare for reuse"

See original GitHub issue

On iOs and android we use “prepare for reuse” to make sure a view is ready to be reused. The simplest example is Image if there were an image already loaded and you set a new image that wont load (network error or such), you end with a view with the image for another cell.

Is there any way in your lib to set the image to “null” before it is reused?

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
naqvitalhacommented, May 15, 2018

@hovox Try this.img.setNativeProps({ opacity: 0 }). Toggle opacity. You can check this sample https://snack.expo.io/@naqvitalha/rlv-demo

1reaction
farfromrefugcommented, May 14, 2018

@naqvitalha sorry for not responding. Dropped react-native as it was not good enough. Sorry

Read more comments on GitHub >

github_iconTop Results From Across the Web

prepareForReuse() | Apple Developer Documentation
The recycling of content is an important technique for improving performance of a collection view. Instead of creating all views from scratch, the...
Read more >
Preparation for reuse and role of accredited reuse centres Full ...
Preparing for reuse is higher in the waste hierarchy of treatment than recycling and energy recovery, sitting just below prevention (see art 4...
Read more >
The U.S. Recycling System | US EPA
This page provides the basis on the United States recycling system, including recycle benefits, how recycling saves resources and jobs, ...
Read more >
Reduce, Reuse and Recycle, to enjoy a better life - YouTube
Discover hundreds of never-before-seen resources! Create your free account at https://my.happylearning.tv/ and start learning in the most ...
Read more >
Reduce, Reuse, Recycle: Alternatives for Waste Management
Image of the Reduce, Reuse, Recycle logo ... If we really look at things we are throwing away, we can learn to see...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found