Home > Enterprise >  How to take paragraphs as an input in android?
How to take paragraphs as an input in android?

Time:08-18

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

CodePudding user response:

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

  • Related