File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default class VirtualList extends PureComponent {
26
26
} ;
27
27
static propTypes = {
28
28
estimatedItemSize : PropTypes . number ,
29
- height : PropTypes . number . isRequired ,
29
+ height : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . string ] ) . isRequired ,
30
30
itemCount : PropTypes . number . isRequired ,
31
31
itemSize : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . array , PropTypes . func ] ) . isRequired ,
32
32
overscanCount : PropTypes . number ,
@@ -35,7 +35,7 @@ export default class VirtualList extends PureComponent {
35
35
scrollToIndex : PropTypes . number ,
36
36
scrollToAlignment : PropTypes . oneOf ( [ ALIGN_START , ALIGN_CENTER , ALIGN_END ] ) ,
37
37
scrollDirection : PropTypes . oneOf ( [ DIRECTION_HORIZONTAL , DIRECTION_VERTICAL ] ) . isRequired ,
38
- width : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . string ] ) ,
38
+ width : PropTypes . oneOfType ( [ PropTypes . number , PropTypes . string ] ) . isRequired ,
39
39
}
40
40
41
41
sizeAndPositionManager = new SizeAndPositionManager ( {
You can’t perform that action at this time.
0 commit comments