【发布时间】:2017-05-27 11:47:49
【问题描述】:
我的应用有问题。
render()
{
console.log( this.state.ext);
var tmp = this.state.ext;
tmp = tmp.toString();
console.log(tmp);
if (this.state.ext != ""){
return(
<View style={styles.container}>
<Image source={require('../../img/mob.png')} style= {styles.mob_logo}/>
<WebView
source={{uri: {tmp}}} style={{marginTop: 20}}
/>
</View>
)
}
我得到 JSON 值
{
tmp = "React Native New Date string"";
}
NSDictionary 类型的不能转换为 NSString。
【问题讨论】:
标签: javascript ios json reactjs react-native