New line in label text "\n"


#1

how can i do “\n” in nativescript?


#2

\n should work if you are setting your text in JavaScript, if you are doing it via XML, you will have to use the encode version 



Textview text all one line
#3

i tried below and none working

<Label text=“Label &#xA; newline” textWrap=“true” />

<Label text=“Label ‘&#xA;’ newline” textWrap=“true” />

<Label text=“Label ‘</br>’ newline” textWrap=“true” />