我想投一个字符串组件来渲染项目以响应本机

时间:2018-08-21 21:00:29

标签: string react-native components render react-native-android

我要投射此字符串

const test = '<View style={styles.loginbox}>
                    <Text style={styles.textInput}></Text>
                    <Text style={styles.email}> </Text></View>'

render() { return ({test})}

到组件并按以下方式使用

render() {return { {test})}

因为我想从服务器读取此字符串作为JSON。

0 个答案:

没有答案