Turns out I have a view with two text blocks:
<View>
<Text>Esto es un texto </Text>
<Text>y esto otro, con otro formato</Text>
</View>
I would like to see it like this:
Esto es un texto y esto otro, con otro formato
However, each block appears on a different line:
Esto es un texto
y esto otro, con otro formato
Is there a way to join them on the same line? I tried putting both <Text>
on the same line but it didn't work.
You must play with
flexDirection
, which determines the main axis of the style. Defaultscolumn
to , which makes each element appear on a separate line.If you change it to
row
, it works!Information extracted from Inline elements implementation