Giter Club home page Giter Club logo

Comments (2)

gre avatar gre commented on July 26, 2024

the library won't solve that because it's too complex. and actually there is no way the native code can check that a "component is ready". (nor on the JS side, because there is no universal convention for 'waiting a component to be ready' in React).

so IMO, the best for you is to trigger the snapshot at the right time, at the right lifecycle, in the right callback / maybe after a delay.
For images, onLoad is a right callback to look at.
But yeah, if you have fading, maybe you want to disable it <Image fadeDuration={0} – or you can add-up a timeout for that..

from react-native-view-shot.

timLoewel avatar timLoewel commented on July 26, 2024

Thanks a lot for your help. I guess, I will have to make do with the timeout.

from react-native-view-shot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.