Reactjs React Native:在ListView旁边输入文本时遇到问题
我在设计test React本机应用程序时遇到问题,其中的视图由Reactjs React Native:在ListView旁边输入文本时遇到问题,reactjs,react-native,Reactjs,React Native,我在设计test React本机应用程序时遇到问题,其中的视图由文本输入(搜索栏)、列表视图(电影列表)和TabBarIOS组成。我尝试了许多不同的Flexbox设置,但未能使列表视图旁边的文本输入。有人能帮忙吗 以下是相关代码: render: function() { if (!this.state.loaded) { return this.renderLoadingView(); } return ( <View style={
文本输入
(搜索栏)、列表视图
(电影列表)和TabBarIOS组成。我尝试了许多不同的Flexbox设置,但未能使列表视图旁边的文本输入
。有人能帮忙吗
以下是相关代码:
render: function() {
if (!this.state.loaded) {
return this.renderLoadingView();
}
return (
<View style={styles.container}>
<TextInput style={styles.searchbox}
placeholder="Search a movie..."
/>
<ListView styles={styles.separator}
dataSource={this.state.dataSource}
renderRow={this._renderMovie}
/>
</View>
);
},
请尝试以下操作:
container: {
flexDirection: 'row',
}
container: {
flexDirection: 'row',
}