Tutorial06 Time Tracking App
Tutorial06 Time Tracking App
Tutorial 06
You need to build a Time Tracking App using React Native to manage time
spent on tasks. This app will allow users to create timers for specific tasks,
start/stop tracking time, and edit timer details.
Requirements
Main Interface:
Core Features:
1. Create Timer: Users can create a new timer with a title and project name.
Component Structure:
State Management:
o id (unique identifier)
Time Formatting:
Technical Requirements:
Optional Enhancements:
The requirement of this activity is to integrate a navigation system into the Time
Tracking App to improve user experience. The Time Tracking App allows
users to create, edit, and manage timers for their tasks. It uses React Navigation
for screen transitions, and timers are managed using useState in App.js.
Requirements:
Manage the list of timers using useState and pass them as props to
child screens.
To Do:
Add EditTimerScreen to the navigation stack.
Use setTimers to update the timer list when creating or editing a timer.
Requirements:
Display all timers in a list using FlatList.
To Do:
Use FlatList to render timers.
Pass the selected timer when navigating to EditTimerScreen.
Requirements:
To Do:
Add validation: Prevent saving if the Title field is empty.
Update the timer list using setTimers([...timers, newTimer]).
Navigate back to HomeScreen after saving.
To Do:
Use setTimers to update the selected timer in the list.
Navigate back to HomeScreen after editing.
Submission