react-native/Libraries/CustomComponents
James Ide 3393b86534 [ListView] Update curRenderedRowsCount when data source changes
Summary:
When a new data source is provided, update `curRenderedRowsCount` in addition to `prevRenderedRowsCount`. What was happening is that I had an empty data source, so `curRenderedRowsCount` and `prevRenderedRowsCount` both settled at zero after the first few frames and `curRenderedRowsCount` wasn't getting increased when the data source was updated.

I also changed the `setState` calls to use the transactional API since several of the new state values are computed from the old ones.

Maybe fixes #1547
Closes https://github.com/facebook/react-native/pull/1612
Github Author: James Ide <ide@jameside.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-06-15 13:30:17 -08:00
..
ListView [ListView] Update curRenderedRowsCount when data source changes 2015-06-15 13:30:17 -08:00
Navigator [AdsManager] Improve animation configurations 2015-06-10 23:35:52 -08:00
LICENSE [ReactNative] Add Custom Components folder 2015-03-20 09:19:28 -08:00