Skip to content

Commit

Permalink
Merge pull request #21668 from allroundexperts/fix-20591
Browse files Browse the repository at this point in the history
fix: use correct prop type in BaseInvertedFlatlist component
  • Loading branch information
aldo-expensify authored Jun 28, 2023
2 parents 19ca306 + 6893686 commit 53e4154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/InvertedFlatList/BaseInvertedFlatList.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import _ from 'underscore';
import React, {forwardRef, Component} from 'react';
import PropTypes from 'prop-types';
import {View} from 'react-native';
import {View, FlatList as NativeFlatlist} from 'react-native';
import * as CollectionUtils from '../../libs/CollectionUtils';
import FlatList from '../FlatList';

Expand All @@ -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(NativeFlatlist)})]).isRequired,

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

0 comments on commit 53e4154

Please sign in to comment.