Ognen Ivanovski 61025a9b33 bugfix: NavigatoriOS doesn't update any scenes when 0th scene is replaced
Summary:
Calling navigator.replace(0, scene) has no effect.

This is because 0 is false in Javascript so when

    this.state.updatingAllIndicesAtOrBeyond == 0

(meaning update all indices starting with 0)

The whole expression evaluates to 0, i.e. false ->  therefore no update
happens.

Explicitly checking for not-equal to null (!= will convert undefined to null automatically) fixes the issue.
Closes https://github.com/facebook/react-native/pull/5155

Reviewed By: svcscm

Differential Revision: D2807397

Pulled By: nicklockwood

fb-gh-sync-id: 519a4ab35c86b0b608808b36593f5f8c2ecd1561
2016-01-06 10:33:36 -08:00
..
2015-12-09 05:19:25 -08:00
2015-07-24 08:41:58 -08:00
2016-01-06 10:33:29 -08:00
2015-11-14 06:29:27 -08:00
2015-12-15 09:09:32 -08:00
2015-12-16 08:37:33 -08:00
2015-12-18 17:04:29 -08:00
2015-12-23 10:08:38 -08:00
2015-12-23 12:40:33 -08:00
2015-12-18 17:04:29 -08:00
2015-12-03 09:10:29 -08:00
2015-12-23 10:08:38 -08:00
2016-01-01 09:33:31 -08:00
2015-12-30 11:41:09 -08:00
2015-07-24 08:41:58 -08:00
2015-04-15 06:06:29 -08:00