Skip to content

Commit

Permalink
fix: use native flatlist for type in BaseInvertedFlatList
Browse files Browse the repository at this point in the history
  • Loading branch information
allroundexperts committed Jun 28, 2023
1 parent c604a4f commit 6893686
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(React.Component)})]).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 6893686

Please sign in to comment.