Summary: Calling -[UIScrollView setContentOffset] with NaN values can cause a crash. That's not clear why exactly the computation returns NaN sometime, but the implemented sanitizing should help to detect this problem during development (and this also prevents the app from crashing).
Summary:
Calling -[UIScrollView setContentOffset] with NaN values can cause a crash. That's not clear why exactly the computation returns NaN sometime, but the implemented sanitizing should help to detect this problem during development (and this also prevents the app from crashing).

See attached task for more details.

Reviewed By: fkgozali

Differential Revision: D13242729

fbshipit-source-id: 747bf1b42e02597e9f1300eee24547563ab29b27

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