Compute textWidth/textHeight when setting text on native.