【发布时间】:2016-03-29 18:49:50
【问题描述】:
这是我的 react native 的渲染函数。如果我把 listview 它工作。如果我把touchablehighlight它工作。但是,如果它把两者都放了它就行不通了。需要帮助。
render: function() {
return (
/* ListView wraps ScrollView and so takes on its properties.
With that in mind you can use the ScrollView's contentContainerStyle prop to style the items.*/
<ListView
contentContainerStyle={styles.list}
dataSource={this.state.dataSource}
renderRow={this._renderRow}/>
<TouchableHighlight onPress={() => this._pressRow(rowID)} underlayColor="transparent">
</TouchableHighlight>
);
},
这里有什么问题?需要这两个组件才能工作。
【问题讨论】:
标签: javascript android react-native