Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant