React NativeのTextコンポーネントに改行(˶ˆ꒳ˆ˵ ) を挿入したいのですが、どうすればいいでしょうか?
もし、私が
<text><br />
Hi~<br >
this is a test message.<br />
</text>
とすると、React Nativeは Hi~ this is a test message.
をレンダリングします。
のように改行して表示することはできますか?
Hi~
this is a test message.
これでいいのではないでしょうか。
<Text>
Hi~{"\n"}
this is a test message.
</Text>