I want to insert a new line (like \r\n, <br />) in a Text component in React Native.(我想在React Native的Text组件中插入新行(例如\ r \ n,<br />)。)
If I have:(如果我有:)
<text><br />
Hi~<br >
this is a test message.<br />
</text>
Then React Native renders Hi~ this is a test message.
(然后React Native渲染Hi~ this is a test message.
)
Is it possible render text to add a new line like so:(是否有可能像这样渲染文本以??添加新行:)
Hi~
this is a test message.
ask by Curtis translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…