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

Conversation

@akramznini
Copy link

Pull request for the React Native Technical Challenge.

- Created a reusable button component for start, stop, reset, and lap actions.
- Defined explicit prop types to address TypeScript warnings.
- Added useEffect to update elapsed time every 100 milliseconds when running.
- Exposed start, stop, reset, and getFormattedTime functions using useImperativeHandle.
- Formatted time to display in "hh:mm:ss" format.
- Added functionality to start, stop, reset, and record laps in the stopwatch.
- Corrected a bug in the reset function within useImperativeHandle.
- Previously, the 'isRunning' state was not set to false, causing incorrect behavior on reset.
- Now, the reset function properly sets 'isRunning' to false, resolving the issue.
- Adjusted lap display to be scrollable
- Fine-tuned styling for a visually appealing user interface.
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