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

Stopwatch by Tom Miller #79

Open
wants to merge 21 commits into
base: main
Choose a base branch
from
Open

Conversation

HamsterStack
Copy link

Description

The goal was to make a stopwatch app with React Native + TypeScript. The following are all part of the stopwatch's features.

  • Start stopwatch to begin counting time
  • Stop the stopwatch to pause and stop counting time
  • Display laps every time the lap button is tapped along with displaying the maximum and minimum lap in green and red respectively
  • Reset stopwatch and all laps when reset button is tapped

Changes

  • Created useStopWatch hook to separate logic of stopwatch and everything else.
  • Created stopwatch timer in the format of hh:mm:ss:SS(SS is centiseconds)
  • Refactored existing tests and added two new tests to test new minimum and maximum lap features.

Tests

Screenshot 2024-01-29 at 23 41 52

UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant