How do I get a text area in native script that supports multiline?
I have tried using the text field which does not have the support for multiline.
Have also tried this code to add multiline to the text field:
var myTextfield = this.page.getViewById<TextField>("noteView"); myTextfield.android.setInputType(android.text.InputType.TYPE_TEXT_FLAG_MULTI_LINE);Answer1:
After a bit of research was able to make this text box using the "TextVIew" component of the native script and some of its properties.
Here is the code for the text box:
<TextView style="margin-top: 15px" borderColor="#DEDEDE" borderWidth="1" height="100px" hint="Enter Note" returnKeyType="send" class="input input-border"></TextView>
Here is the screen shot of the text view working:
<a href="https://i.stack.imgur.com/ch2bM.png" rel="nofollow"><img alt="Screen Shot of the textview working" class="b-lazy" data-src="https://i.stack.imgur.com/ch2bM.png" data-original="https://i.stack.imgur.com/ch2bM.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>