It's pretty simple. Let's assume the following element in your markup:
<Button text="Hello! Is it me you're looking for?" id="wrapButton" />
By default, Android and iOS truncate the text. You can override this behaviour with the following code:
var wrapButton = page.getViewById("wrapButton");
if (app.android) {
wrapButton.android.singleLine = false;
} else if (app.ios) {
wrapButton.ios.titleLabel.lineBreakMode = NSLineBreakMode.ByWordWrapping;
}
Here's how it looks: