Arno Fortelny cac5ce3b93 RefreshControl on initial render will not beginRefresh when refreshing state is false
Summary:
There's an edge case in the `RefreshControl` which causes it to show as refreshing when the state is set to false. When the component is initialized with `refreshing` set to `true` on initial render but set to `false` before `layoutSubviews` is called, it will call `beginRefresh` and ignore its state. That's because `layoutSubviews` never checks if `_currentRefreshingState` is in fact still `true`, it merely assumes it is.

This is fixed by simply doing a check for `_currentRefreshingState` before entering `beginRefresh` from `layoutSubviews`.
Closes https://github.com/facebook/react-native/pull/7556

Differential Revision: D3300124

fbshipit-source-id: d1dce8612e2c03b1f14284d513803d00af4b5c8a
2016-05-13 14:43:26 -07:00
..
2016-01-07 12:03:17 -08:00
2016-04-28 16:00:32 -07:00
2016-04-28 16:00:32 -07:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-12-08 03:32:30 -08:00
2015-06-03 09:49:35 -08:00
2016-04-04 04:10:24 -07:00
2015-03-26 02:42:24 -08:00
2016-02-16 16:51:39 -08:00
2016-05-10 10:51:24 -07:00
2016-04-22 08:15:25 -07:00
2016-04-22 08:15:25 -07:00
2016-04-22 08:15:25 -07:00
2016-03-22 10:58:29 -07:00