react-native/Libraries/CustomComponents
Hedger Wang 06a154e061 Fix Js error in Navigator
Summary: public

In Navigator, there are several places that mutate `this.state.presentedIndex`
with the express `this.state.presentedIndex = destIndex` instead of calling
`this.setState`, which creates the problem that not all internal states are
updated within the same React update cycle.

One of the symptoms is that over-swiping within the Navigator may throw JS error
due to `this.state.sceneConfigStack` and `this.state.presentedIndex` are not both
updated.

The workaround is to bypass the over-swiping gesture to avoid JS error.

Reviewed By: ericvicenti

Differential Revision: D2557140

fb-gh-sync-id: 1e5c9047ed17c04a63e2a568118848b00723fb1d
2015-10-20 11:04:23 -07:00
..
ListView Make removeClippedSubviews default to true on ListView/RecyclingListView 2015-10-13 08:06:26 -07:00
Navigator Fix Js error in Navigator 2015-10-20 11:04:23 -07:00
LICENSE [ReactNative] Use ASCII double quotes 2015-07-24 13:16:25 -08:00