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.
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" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.