react-native/Libraries/CustomComponents/Lists/__tests__
Spencer Ahrens 5c856150ff Kill shouldItemUpdate
Summary:
It was just adding unnecessary complexity. Users should just use standard React perf best practices, like `PureComponent` and `shouldComponentUpdate`.

This should be backwards compatible - existing `shouldItemUpdate` usage will just be ignored and should consider migrating to this pattern:

```
class MyItem extends React.PureComponent {
  _onPress = () => {
  	this.props.onPressItem(this.props.id);
  };
  render() {
    return (
      <SomeOtherWidget title={this.props.title} onPress={this._onPress} />
    )
  }
}
...
_renderItem = ({item}) => (
  <MyItem onPressItem={this._onPressItem} title={item.title} id={item.id} />
);
```

Which will automatically prevent re-renders unless the relavent data changes.

Reviewed By: yungsters

Differential Revision: D4730599

fbshipit-source-id: 0f61efe96eb4d95bb3b7c4ec889e3e0e34436e56
2017-03-21 22:30:30 -07:00
..
__snapshots__ Kill shouldItemUpdate 2017-03-21 22:30:30 -07:00
FlatList-test.js add jest snapshot tests 2017-03-21 22:30:30 -07:00
SectionList-test.js add jest snapshot tests 2017-03-21 22:30:30 -07:00
ViewabilityHelper-test.js Fix minimumViewTime 2017-03-16 16:45:54 -07:00
VirtualizeUtils-test.js Move new components out of `Experimental` directory 2017-03-01 09:16:05 -08:00