Perhaps a better approach would be to have the truncating text abstracted in a separate component. But even then, it's expensive to measure and error prone. For example, you're not recalculating if the text changes. You're making assumptions about padding. And font sizes. My preference would be to just stick to single line and avoid the measures.