Skip to content

Commit

Permalink
fix: add scroll view components types
Browse files Browse the repository at this point in the history
Ref: #141
  • Loading branch information
marcocesarato committed Jan 19, 2022
1 parent ebb74fe commit 131c706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/BigList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ BigList.propTypes = {
]),
sections: PropTypes.array,
stickySectionHeadersEnabled: PropTypes.bool,
ScrollViewComponent: PropTypes.func,
ScrollViewComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.elementType]),
};

BigList.defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ interface BigListProps<ItemT>
sections?: ItemT[][] | null | undefined;
stickySectionHeadersEnabled?: boolean;
children?: null | undefined;
ScrollViewComponent?: React.ComponentType<ScrollViewProps>;
ScrollViewComponent?: React.ComponentType<ScrollViewProps> | React.Component<ScrollViewProps>;
}
export default class BigList<ItemT = any> extends PureComponent<
BigListProps<ItemT>
Expand Down

0 comments on commit 131c706

Please sign in to comment.