Reactjs React Native:数据库中存储的绑定模板
我正在将我的应用程序的常见问题存储到数据库表中,该表在react native template中格式化 e、 g 此外,解码是使用html实体节点包完成的,该包提供如下字符串Reactjs React Native:数据库中存储的绑定模板,reactjs,react-native,Reactjs,React Native,我正在将我的应用程序的常见问题存储到数据库表中,该表在react native template中格式化 e、 g 此外,解码是使用html实体节点包完成的,该包提供如下字符串 "<Text> You can<Text style={{ fontWeight: 'bold' }}> earn up to 1,000 Sparrow points </Text>during the test period </Text>" render
"<Text>
You can<Text style={{ fontWeight: 'bold' }}> earn up to 1,000 Sparrow points </Text>during the test period
</Text>"
render(){
var data = [];
data.push(this.state.faq);
return(
<View>
{data}
</View>
)
}
”
在测试期间,您最多可以获得1000个Sparrow点数
"
render(){
var数据=[];
data.push(this.state.faq);
返回(
{data}
)
}
问题:它绑定为字符串,未解析模板
"<Text>
You can<Text style={{ fontWeight: 'bold' }}> earn up to 1,000 Sparrow points </Text>during the test period
</Text>"
render(){
var data = [];
data.push(this.state.faq);
return(
<View>
{data}
</View>
)
}