Deeply compare viewabilityConfigs to avoid triggering invariant unnecessarily
Deeply compare viewabilityConfigs to avoid triggering invariant unnecessarily

Summary:
Currently, modifying a component that renders a FlatLists while Hot Reloading is enabled will trigger an invariant inside FlatList for changing viewabilityConfig on the fly. This happens because it checks object equality between the configs.

By checking equality of the config's *properties* instead, we maintain the efficacy of the invariant but keep it from falsely triggering during development.

Reviewed By: sahrens

Differential Revision: D9466129

fbshipit-source-id: 67149e9e70ad7b2e2584bb7ec03e2dea26ef45e8

arthuralee/react-native,arthuralee/react-native,arthuralee/react-native,hoangpham95/react-native,hoangpham95/react-native,exponentjs/react-native,hammerandchisel/react-native,myntra/react-native,javache/react-native,pandiaraj44/react-native,hammerandchisel/react-native,exponentjs/react-native,javache/react-native,janicduplessis/react-native,myntra/react-native,exponent/react-native,hoangpham95/react-native,hammerandchisel/react-native,hammerandchisel/react-native,pandiaraj44/react-native,hoangpham95/react-native,pandiaraj44/react-native,pandiaraj44/react-native,javache/react-native,exponentjs/react-native,hammerandchisel/react-native,facebook/react-native,myntra/react-native,pandiaraj44/react-native,exponentjs/react-native,janicduplessis/react-native,hoangpham95/react-native,exponentjs/react-native,javache/react-native,hammerandchisel/react-native,exponent/react-native,myntra/react-native,janicduplessis/react-native,janicduplessis/react-native,exponent/react-native,facebook/react-native,hoangpham95/react-native,hammerandchisel/react-native,hoangpham95/react-native,javache/react-native,javache/react-native,javache/react-native,hoangpham95/react-native,arthuralee/react-native,myntra/react-native,hammerandchisel/react-native,facebook/react-native,exponent/react-native,myntra/react-native,exponent/react-native,facebook/react-native,exponentjs/react-native,myntra/react-native,exponent/react-native,janicduplessis/react-native,javache/react-native,pandiaraj44/react-native,javache/react-native,exponent/react-native,facebook/react-native,exponentjs/react-native,exponentjs/react-native,pandiaraj44/react-native,arthuralee/react-native,myntra/react-native,pandiaraj44/react-native,facebook/react-native,facebook/react-native,facebook/react-native,janicduplessis/react-native,myntra/react-native,facebook/react-native,janicduplessis/react-native,exponent/react-native,janicduplessis/react-native