Commit a188c62e by tungnq

IMPORTANT: Đã xử lý vẫn đề không hỗ trợ flex wrap containerStyle trong flat list

parent fa940ddf
...@@ -66,7 +66,7 @@ const styles = StyleSheet.create({ ...@@ -66,7 +66,7 @@ const styles = StyleSheet.create({
}, },
//FlatList //FlatList
flatList:{ flatList:{
height:200, maxHeight:200,
backgroundColor:R.colors.blue1, backgroundColor:R.colors.blue1,
paddingHorizontal:10, paddingHorizontal:10,
borderRadius:10, borderRadius:10,
......
...@@ -127,12 +127,13 @@ const NotificationDetailView = props => { ...@@ -127,12 +127,13 @@ const NotificationDetailView = props => {
</View> </View>
<View style={styles.flatList}> <View style={styles.flatList}>
<FlatList <FlatList
nestedScrollEnabled nestedScrollEnabled={true}
scrollEnabled={true}
data={dataList} data={dataList}
renderItem={renderItem} renderItem={renderItem}
keyExtractor={item => item.id} keyExtractor={item => item.id}
numColumns={1} numColumns={2}
contentContainerStyle={{flexDirection: 'row', flexWrap: 'wrap'}} columnWrapperStyle={{flexWrap: 'wrap'}}
/> />
</View> </View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment