Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs React Native:在ListView旁边输入文本时遇到问题_Reactjs_React Native - Fatal编程技术网

Reactjs React Native:在ListView旁边输入文本时遇到问题

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={

我在设计test React本机应用程序时遇到问题,其中的视图由
文本输入
(搜索栏)、
列表视图
(电影列表)和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',
    }