この文字列がサーバーから返されました。文字列には、プレーンテキストとRN.Textコンポーネントの間に混在した内容が含まれています。反応コンポーネントを含む文字列の解析
{
verse: "\u0630<Text style= {styles.madda_normal}>\u064e\u0672</Text>\u0644\u0650\u0643\u064e <Text style={styles.ham_wasl}>\u0671</Text>\u0644\u0652\u0643\u0650\u062a\u064e<Text style={styles.madda_normal}>\u0640\u0670</Text>\u0628\u064f \u0644\u064e\u0627 \u0631\u064e\u064a\u0652\u0628\u064e\u200c\u06db \u0641\u0650\u064a\u0647\u0650\u200c\u06db \u0647\u064f<Text style={styles.idgh_w_ghn}>\u062f\u064b\u0649 \u0644</Text>\u0651\u0650\u0644\u0652\u0645\u064f\u062a\u0651\u064e\u0642<Text style={styles.madda_permissible}>\u0650\u064a</Text>\u0646\u064e"
}
どのように解析しますか?過去において
...
render() {
return (
<Text>{response.verse}</Text>
)
}
...
申し訳ありませんが、それはこの質問のポイントではありません –
私は見るので、それもレンダリングしたい。 –
@ArionaRianだからパーサーが必要です。 https://github.com/wrakky/react-html-parserこれはあなたの問題を解決することができます聞く。 –