【发布时间】:2016-06-23 17:27:05
【问题描述】:
我已经实现了一个类似这样的卡片列表:https://github.com/yelled3/react-native-grid-example,但是,似乎使用
list: {
justifyContent: "center",
flexDirection: "row",
flexWrap: "wrap",
}
和
section: {
flex: 1,
flexDirection: "row",
backgroundColor: "#FFFFFF",
marginBottom: 10,
justifyContent: "center",
}
在样式中不允许部分标题正确呈现,并且它们极大地改变了列表视图的布局。
部分标题呈现如下:
<View style={styles.section}>
<Text style={styles.sectionHeaderText}>----{sectionId}----</Text>
</View>
我已经让它在没有节换行的情况下使用节标题,但每行只有一张卡不是一种选择。
【问题讨论】:
标签: ios gridview reactjs react-native