how i disable new line in native.newTextBox ?

hii there
 
how i i disable the  new line with native.newTextBox ?
 

If you want to limit the user to a single line, you may want to use newTextField instead, see https://docs.coronalabs.com/api/library/native/newTextField.html.

thank you , and how can i change maximum letters for text field

Just check the length of the string in the listener when the field is edited, and truncate it if necessary.

I had same question. Thank you so much for your answer