Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
perunt committed Oct 30, 2023
1 parent da257ac commit ec8dfab
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 129 deletions.
16 changes: 15 additions & 1 deletion src/components/FlatList/MVCPFlatList.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable es/no-optional-chaining, es/no-nullish-coalescing-operators, react/prop-types */

import React from 'react';
import {FlatList} from 'react-native';
import PropTypes from 'prop-types';

function mergeRefs(...args) {
return function forwardRef(node) {
Expand Down Expand Up @@ -188,4 +188,18 @@ const MVCPFlatList = React.forwardRef(({maintainVisibleContentPosition, horizont
);
});

MVCPFlatList.displayName = 'MVCPFlatList';
MVCPFlatList.propTypes = {
maintainVisibleContentPosition: PropTypes.shape({
minIndexForVisible: PropTypes.number.isRequired,
autoscrollToTopThreshold: PropTypes.number,
}),
horizontal: PropTypes.bool,
};

MVCPFlatList.defaultProps = {
maintainVisibleContentPosition: null,
horizontal: false,
};

export default MVCPFlatList;
128 changes: 0 additions & 128 deletions src/components/InvertedFlatList/MVCPScrollView/MVCPScrollView.js

This file was deleted.

0 comments on commit ec8dfab

Please sign in to comment.