我想做一个网上商店,我需要一个反应原生的水平部分列表,包含我的产品。这是我的代码。请帮我从右到左滚动。clothes 是一个包含我产品详细信息的对象数组。
export default class MySectionList extends Component{
render(){
return(
<SectionList
sections={Clothes}
horizontal={true}
showsHorizontalScrollIndicator={false}
renderItem={({item})=>(
<View>
<Image source={{uri:"item.image",width:'65%',height:200}}/>
<Text>{item.name}</Text>
<Text>{item.price}</Text>
</View>
)}
renderSectionHeader={({section})=>(
<Text>{section.title}</Text>)}
/>
)
}
}
这个sectionList从左到右滚动,我需要另一个从左到右滚动。