@@ -78,13 +78,13 @@ export default class UltimateListView extends Component {
7878 paginationBtnText : 'Load more...' ,
7979
8080 //GridView
81- numColumns : 1 ,
82- columnWrapperStyle : null
81+ numColumns : 1
8382 } ;
8483
8584 static propTypes = {
8685 initialNumToRender : React . PropTypes . number ,
8786 horizontal : React . PropTypes . bool ,
87+ gap : React . PropTypes . number ,
8888
8989 firstLoader : React . PropTypes . bool ,
9090 scrollEnabled : React . PropTypes . bool ,
@@ -139,8 +139,7 @@ export default class UltimateListView extends Component {
139139 paginationBtnText : React . PropTypes . string ,
140140
141141 //GridView
142- numColumns : React . PropTypes . number ,
143- columnWrapperStyle : React . PropTypes . object
142+ numColumns : React . PropTypes . number
144143 } ;
145144
146145 constructor ( props ) {
@@ -453,11 +452,12 @@ export default class UltimateListView extends Component {
453452 }
454453
455454 render ( ) {
455+ const { numColumns, gap} = this . props ;
456456 return (
457457 < FlatList renderScrollComponent = { this . renderScrollComponent }
458458 onEndReachedThreshold = { 0.1 }
459+ key = { numColumns }
459460 { ...this . props }
460- key = { this . props . numColumns }
461461 ref = { ( ref ) => this . _flatList = ref }
462462 removeClippedSubviews = { false }
463463 data = { this . state . dataSource }
@@ -469,8 +469,7 @@ export default class UltimateListView extends Component {
469469 onEndReached = { this . onEndReached }
470470 refreshControl = { this . renderRefreshControl ( ) }
471471 contentContainerStyle = { this . contentContainerStyle ( ) }
472- numColumns = { this . props . numColumns }
473- columnWrapperStyle = { this . columnWrapperStyle } />
472+ numColumns = { numColumns } />
474473 ) ;
475474 }
476475}
0 commit comments