i'm trying to make inside padding of textarea but can't do it. another poeblem is inside textarea when i start writing something it always go a single long long line doesn't make new line. Can anyone there who can help me by letting me know the two properties?
I have attached a screenshoot left one is given design and right one is i've made.
Asked
Active
Viewed 2,012 times
0

megh
- 171
- 1
- 1
- 10
-
Try to Add Padding inside TextInpute – Paresh Shiyal May 06 '21 at 10:47
1 Answers
2
set multilne to true
<TextInput multiline={true} />
and for padding, set style={{padding: 10}}
, like this
<TextInput multiline={true} style={{padding: 10}} />
Also write textAlignVertical="top"
otherwise the placeholder
will be positioned in the center, finally write like this
<TextInput multiline={true} style={{padding: 10}} textAlignVertical="top" />

Kartikey
- 4,516
- 4
- 15
- 40