Tutorial03 Product List Exercises
Tutorial03 Product List Exercises
Tutorial 03
Objective: Create a React Native app that displays a default list of products
using a FlatList.
1. Create a default list of products. Each product should have the following
fields:
id: "1",
name: "Apple iPhone 14",
price: "799",
description: "Smartphone by Apple",
},
{
id: "2",
name: "Samsung Galaxy S23",
price: "699",
description: "Flagship phone by Samsung",
},
{
id: "3",
name: "Sony WH-1000XM5",
price: "399",
description: "Noise-canceling headphones",
},
];
Expected Output:
Objective: Extend the app to allow users to add new products to the list.
1. Add a form at the bottom of the screen with the following input fields:
o Validate that the Product Name and Product Price fields are not
empty.
Expected Output:
Users can type in the form and click "Add Product" to add new items to
the product list.
Objective: Improve the app's user experience by handling the keyboard and
adding styling.
1. Keyboard Handling:
2. Styling:
Rounded corners.
Expected Output:
The app should maintain a clean layout when the keyboard is open.
Submission
Submit a zip file containing all Java programs to this tutorial’s submission box
in the course website on FIT Portal.