Skip to content

Commit

Permalink
fix: use correct prop type in BaseInvertedFlatlist component
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Jun 27, 2023
1 parent e5f00f8 commit c604a4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/InvertedFlatList/BaseInvertedFlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const propTypes = {
initialRowHeight: PropTypes.number.isRequired,

/** Passed via forwardRef so we can access the FlatList ref */
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({current: PropTypes.instanceOf(FlatList)})]).isRequired,
innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({current: PropTypes.instanceOf(React.Component)})]).isRequired,

/** Should we measure these items and call getItemLayout? */
shouldMeasureItems: PropTypes.bool,
Expand Down

0 comments on commit c604a4f

Please sign in to comment.