---
# System prepended metadata

title: List of Items

---

# List of Items

## Problem:

Implement a simple component in React Native that displays a list of items. The component should accept the following props:

- `items`: an array of strings representing the items to display
- `title`: a string representing the title of the list
- The component should display the title at the top of the list, followed by the items in the list. Each item should be displayed as a single line of text.








# ToDo List

## Problem
You are building a to-do app in React Native, and you need to implement a screen that allows the user to add new to-do items.

You should implement a `NewTodoForm` component that has the following functionality:

- The component should render a form with a text input field and a submit button.
- When the user types text into the input field and clicks the submit button, the component should call a `onSubmit` prop function with the text as an argument.

## Requirements
- The component should use the `TextInput` and `Button` components from React Native to render the form elements.
- The component should have proper prop types defined using the `React.Props` type.