From ab554cae94c63dc96966073c27713faf73d998ab Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sat, 4 Apr 2020 20:19:18 +0200 Subject: [PATCH] Removed useless PureFlatList.js as FlatList is already a pure component --- components/Lists/PureFlatList.js | 33 -------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 components/Lists/PureFlatList.js diff --git a/components/Lists/PureFlatList.js b/components/Lists/PureFlatList.js deleted file mode 100644 index 4cd030e..0000000 --- a/components/Lists/PureFlatList.js +++ /dev/null @@ -1,33 +0,0 @@ -import * as React from 'react'; -import {FlatList} from "react-native"; - -type Props = { - data: Array, - keyExtractor: Function, - renderItem: Function, - updateData: number, -} - -/** - * FlatList implementing PureComponent for increased performance. - * - * This is a pure component, meaning it will only update if a shallow comparison of state and props is different. - * To force the component to update, change the value of updateData. - */ -export default class PureFlatList extends React.PureComponent { - - static defaultProps = { - updateData: null, - }; - - render() { - return ( - - ); - } -}