eslint-plugin-react-native-no-get-item-layout-prop-on-virtualized-list
v1.0.2
Published
Checks that the `getItemLayout` prop isn't being used on `VirtualizedList`, `FlatList`, or `SectionList` since it can prevent items from being rendered
Downloads
348
Maintainers
Readme
eslint-plugin-react-native-no-get-item-layout-prop-on-virtualized-list
Checks that the getItemLayout
prop isn't being used on VirtualizedList
, FlatList
, or SectionList
since it can prevent items from being rendered.
Can ignore after github.com/facebook/react-native/issues/15990 is resolved.
Install
npm install --save-dev eslint-plugin-react-native-no-get-item-layout-prop-on-virtualized-list
or yarn add --dev eslint-plugin-react-native-no-get-item-layout-prop-on-virtualized-list
Configuration:
"plugins": [
"react-native-no-get-item-layout-on-virtualized-list"
],
"rules": {
"react-native-no-get-item-layout-on-virtualized-list/no-get-item-layout-prop-on-virtualized-list": "error"
}