反应原生垂直平面列表不向下滚动

时间:2021-07-25 01:10:43

标签: javascript reactjs react-native scrollview react-native-flatlist

我试图在我的屏幕上垂直滚动,但平面列表没有向下滚动下面的代码 the home page in which the flatlist is used

render(){
    let {container}=styles
    let {dataSource, isloading}=this.state
    return(
        <View style={styles.container}>
        <View >
        <FlatList
         data={dataSource}
         renderItem={this._renderItem}
         keyExtractor={(item,index) => index.toString()}
         onEndReached={this._handleLoadMore}
         onEndReachedThreshold={0.5}
        />
           
       
    </View>
    </View>
  );
};

}在此处输入代码

0 个答案:

没有答案