Janic Duplessis 3e1f1ea7bb Allows RefreshControl to be mounted with refreshing = true
Summary:
RefreshControl did not start refreshing when refreshing was set to true initially. It also did not start refreshing on iOS when setting the prop from false to true without doing a pull to refresh gesture.

This was a pain in the ass to make work on iOS because UIRefreshControl seems super sensitive to when beginRefreshing can be called, for the initial render I need to call it in layoutSubviews. I also have to manually adjust the scrollview content offset when calling beginRefreshing. The code is a bit hacky but it was the only solution I found that was actually working.

Fixes #5716
Closes https://github.com/facebook/react-native/pull/5745

Reviewed By: svcscm

Differential Revision: D2910716

Pulled By: nicklockwood

fb-gh-sync-id: d60e73bcfe8d86bb01249ba5f17e6a23c5a5aff6
2016-02-07 13:40:29 -08:00
..
2016-01-07 12:03:17 -08:00
2016-01-22 17:27:32 -08: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
2015-03-26 02:42:24 -08: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
2016-01-14 14:04:34 -08:00
2016-01-15 05:15:31 -08:00