所以我的后端返回一个带有两组强标签的字符串。好像:
const string = "<strong>Name N.</strong> How are you doing today? <strong>more text</strong>"
由于我使用的是 React Native,因此无法按原样显示。我想返回看起来像这样的东西:
<Text>
<Text style={{fontWeight: 'bold'}>Name N.</Text>
How are you doing today?
<Text style={{fontWeight: 'bold'}>more text</Text>
<Text>
解决这个问题的最佳方法是什么?
凤凰求蛊
相关分类