I want to insert a new line in a Text component in React Native.
Simply put this {'\n'} where you want line break:-
<text>
Hi{'\n'}
this is a test message.
</text>Output look like this:-
Hi this is a test message.
<text>
Hi{'\n'}
this is a test message.
</text>Hi this is a test message.
0 Comments
Post a Comment