# Convert to Text Area

## TextView/Text to Code

Text View allows the user to enter **more than one line** of text. A textView image is and its code is shown below.

![A Text View Example](/files/-MGsAY-is6wUB907gj3K)

While creating the component, you can add **text** into TextView to inform on Monday Hero.

<div align="center"><img src="/files/-MKodWYyvaehCNvJes1L" alt="TextView Monday Hero Selections"></div>

### Generated iOS/Android Code of TextView

{% tabs %}
{% tab title="iOS" %}

```swift
//HomePageViewController.swift 
import UIKit

class HomePageViewController: UIViewController {

//Connection from an Interface Builder to a UI component
@IBOutlet private weak var addNotesTextView: UITextView!

	override func viewDidLoad() {
		super.viewDidLoad()
		setupViews()
	}
}

extension HomePageViewController {
	private func setupViews() {
		//TextView properties
		addNotesTextView.backgroundColor = UIColor.daisy2
		addNotesTextView.text = NSLocalizedString("add.note.here", comment: "")
		addNotesTextView.textColor = UIColor.spruce_40
		addNotesTextView.font = UIFont.textStyle5
		addNotesTextView.textAlignment = .left
			}
}		
```

{% endtab %}

{% tab title="Android" %}
Android does not have a separate component for Text Areas, the same code is used for the [Texts](/v1-mac-app/working-with-monday-hero/auto-component-code-generation/design-to-text-code.md) are also used for Text Areas.&#x20;

{% content-ref url="/pages/-MKAkeUaR98eGvVIsvk-" %}
[Texts](/v1-mac-app/working-with-monday-hero/auto-component-code-generation/design-to-text-code.md)
{% endcontent-ref %}
{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.mondayhero.io/v1-mac-app/working-with-monday-hero/component-convert-to-ios-android-code/convert-text-area-to-ios-android-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
