1

I am developing a Notes app and I want to implement a kind of text area thing where user can enter as many paragraphs as he wants and then all of that gets saved in the database. Edit texts look good when you want to take short input like name and phone number but what to do in this case ?

Something like this :

enter image description here

enter image description here

vibhum mohan
  • 25
  • 1
  • 6
  • Edittext has one more propery.. Multiline, https://stackoverflow.com/questions/4233626/allow-multi-line-in-edittext-view-in-android – Vivek Gupta Aug 17 '22 at 12:54
  • @VivekGupta Thank you so much, I've attached some pictures in question I want something like that can you explain me for that. – vibhum mohan Aug 17 '22 at 16:01

1 Answers1

0

If your app is in React native try this props :

 <TextInput 
  multiline={true}
  />

Then if its in android try this :

<EditText
    android:inputType="textMultiLine" />

as vivek suggested.

Hope it helps, feel free for doubts

Gaurav Roy
  • 11,175
  • 3
  • 24
  • 45