Laboratory Activity #3: Button, TextInput, and List
At the end of this topic, students are expected to:
- Understand the basic usage of states and props.
- Accept user input using TextInput.
- Use the Button to perform an action.
- Display a list of text objects.
- Gain knowledge regarding the basics of React Native.
- Create a React Native application that accepts user input in a
TextInputfield. - When the ADD button is pressed:
- The entered text will be displayed below in a list format.
- The
TextInputfield will be cleared after adding the item.
- In your App.js, design your app similar to the sample output shown below.
- Set the placeholder of the
TextInputcomponent to:Enter Item - Explore and make your own design:
- You may change colors, fonts, layout, and button styles.
- Make your app creative and personalized.
- Create a branch named:
Surname_lab3-branch - Upload your React Native code files to this branch.
- Add a tag named:
Laboratory3to mark your first version of the code. - Attach a screenshot of your output in the repository:
- File name format:
or
Surname_Lab3_Output1.pngSurname_Lab3_Output.pdf
- Include the screenshot of your output in the repository.
Submit the following through a private comment in Google Classroom:
- GitHub repository link (with branch and tag)
- Snack Expo project link
- Lab Manual (PDF or DOCX) with attached screenshot of the output
App Title: My Favorite Clothing Brands
Description:
A simple React Native app where the user can add their favorite clothing brands to a list.
Note: You can create your own theme and personalize the interface based on your preference.
- React Native
- Expo Snack
- JavaScript / JSX
Hernz N. Ramones
Laboratory 3: DCIT 26 – Application Development and Emerging Technologies