A simple To-Do List app built with React Native and Expo, demonstrating the use of state management and props.
The Todo List
Displays a static list of tasks passed from a parent component to a child component using props.
useState — stores the task list in index.tsx Props — tasks array is passed down to the ToDoList component .map() — dynamically renders each task on the screen
A simple ToDo list application built with React Native that demonstrates component-based architecture.
This is a React Native application created as part of Lab Assignment 2. The app displays a list of tasks and includes a form to add new tasks. The project demonstrates how to break down a component into smaller, reusable components.
- Display a list of ToDo tasks
- Visual indication of completed tasks
- Form to add new tasks
- Component-based architecture
.
├── index.tsx # Main app component
├── ToDoList.tsx # Component for displaying the task list
├── ToDoForm.tsx # Component for the add task form
└── README.md # Project documentation
The main application component that imports and renders the ToDoList and ToDoForm components.
Displays a scrollable list of tasks with the following features:
- Shows task text
- Indicates completed tasks with a gray background
- Each task is pressable
A form component that includes:
- Text input field for new tasks
- "Add" button to submit tasks
npx create-expo-app@latest lab2
npm run reset-project
Start the development server:
npx expo start
Then follow the on-screen instructions to run the app on:
- iOS Simulator
- Android Emulator
- Physical device using Expo Go app
- React Native
- TypeScript
- Expo
This project fulfills the following requirements:
- Part 1: Hard-coded ToDo list and form in a single file
- Part 2: Separated into ToDoList and ToDoForm components
- Part 3: Components imported and used in main App file
[Loretta Okoh]
- Course: [Mobile Application Development (CPRG-303-C)]
- Assignment: Lab Assignment 2: Layout Components
- Date: [February 13 2026]
This project is created for educational purposes.