diff --git a/Libraries/Lists/FlatList.js b/Libraries/Lists/FlatList.js index 607919efa..da1158aa4 100644 --- a/Libraries/Lists/FlatList.js +++ b/Libraries/Lists/FlatList.js @@ -9,6 +9,7 @@ */ 'use strict'; +const deepDiffer = require('deepDiffer'); const MetroListView = require('MetroListView'); // Used as a fallback legacy option const React = require('React'); const View = require('View'); @@ -472,7 +473,7 @@ class FlatList extends React.PureComponent, void> { 'Changing onViewableItemsChanged on the fly is not supported', ); invariant( - prevProps.viewabilityConfig === this.props.viewabilityConfig, + !deepDiffer(prevProps.viewabilityConfig, this.props.viewabilityConfig), 'Changing viewabilityConfig on the fly is not supported', ); invariant(