Code Monkey home page Code Monkey logo

Comments (6)

alexcyr avatar alexcyr commented on July 18, 2024

perfect! solved issue for me.

from react-native-stopwatch-timer.

zayedelfasa avatar zayedelfasa commented on July 18, 2024

thank you!

from react-native-stopwatch-timer.

hungdev avatar hungdev commented on July 18, 2024

it seems not to work for me. So I decided to code myself.

from react-native-stopwatch-timer.

Ballak-T avatar Ballak-T commented on July 18, 2024

@hungdev Maybe there was an update which destroyed this solution. Or make sure that everytime you do yarn / yarn upgrade, you also run script that overrides module with changes you want.

from react-native-stopwatch-timer.

rangellucas avatar rangellucas commented on July 18, 2024

just change this line on file: lib/stopwatch.js

from
this.setState({elapsed: new Date() - this.state.startTime - this.state.pausedTime });

to
this.setState({elapsed: new Date() - this.state.startTime });

remove this.state.pausedTime as mentioned above.

from react-native-stopwatch-timer.

michaeljstevens avatar michaeljstevens commented on July 18, 2024

thanks 👍 added this fix

from react-native-stopwatch-timer.

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.