I'd like to create a component which will display a View called label on the top-right corner and some text surrounding it, similarly to what you'll get on a web layout when you float: right a <div> with CSS. Both the label and the text may have varying lengths. I've been trying for a while to make the text from the 2nd row onwards wrap and expand below the label, but with no luck.
This is my code so far:
<View style={{flexDirection: 'row', borderWidth: 1}}>
<Text
numberOfLines={3}
style={{flex: 1}}
>
lorem ipsum dolor sit amet consectetur adipiscing elit sed do eiusmod tempor
</Text>
<View>
<Text style={{backgroundColor: 'wheat'}}>
label 1234
</Text>
</View>
</View>

