react-native/Libraries/Components
Janic Duplessis 44f7a00e95 Cross platform PullToRefreshView component
Summary:
Both iOS and Android currently support some sort of native pull to refresh control but the API was very different. I tried implementing a component based on PullToRefreshViewAndroid but that works on both platforms.

I liked the idea of wrapping the ListView or ScrollView with the PullToRefreshView component and allow styling the refresh view with platform specific props if needed. I also like the fact that 'refreshing' is a controlled prop so there is no need to keep a ref to the component or to the stopRefreshing function.

It is a pretty rough start so I'm looking for feedback and ideas to improve on the API before cleaning up everything.

On iOS we could probably deprecate the onRefreshStart property of the ScrollView and implement the native stuff in a PullToRefreshViewManager. We could then add props to customize the look of the UIRefreshControl (tintColor). We could also deprecate the Android only component and remove it later.
Closes https://github.com/facebook/react-native/pull/4915

Reviewed By: svcscm

Differential Revision: D2799246

Pulled By: nicklockwood

fb-gh-sync-id: 75872c12143ddbc05cc91900ab4612e477ca5765
2016-01-04 08:00:29 -08:00
..
ActivityIndicatorIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
Clipboard add Clipboard component for ios and android 2015-12-09 10:04:21 -08:00
DatePicker Fix flow errors in fbobjc 2015-12-04 11:56:29 -08:00
DrawerAndroid Bugfix - Typos 2015-12-15 09:09:32 -08:00
Intent Add deep linking support to IntentAndroid 2015-12-15 06:27:27 -08:00
MapView Implement draggable annotations on MapView. Closes #2512 2016-01-04 06:38:30 -08:00
Navigation Update NavigatorIOS.ios.js 2016-01-04 07:42:31 -08:00
ProgressBarAndroid Added ColorPropType 2015-12-23 10:08:38 -08:00
ProgressViewIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
RefreshControl Cross platform PullToRefreshView component 2016-01-04 08:00:29 -08:00
ScrollView Cross platform PullToRefreshView component 2016-01-04 08:00:29 -08:00
SegmentedControlIOS Compose propTypes from View.propTypes where appropriate. 2015-11-18 13:06:27 -08:00
SliderIOS Add option for both min/max track image. 2015-12-21 10:30:39 -08:00
StatusBar Release React Native for Android 2015-09-14 18:13:39 +01:00
Switch Added ColorPropType 2015-12-23 10:08:38 -08:00
SwitchAndroid Bugfix - Typos 2015-12-15 09:09:32 -08:00
SwitchIOS Added ColorPropType 2015-12-23 10:08:38 -08:00
TabBarIOS Added ColorPropType 2015-12-23 10:08:38 -08:00
TextInput Fix app crash caused by TextInput. 2015-12-15 17:32:27 -08:00
ToastAndroid Fix errors uncovered by v0.19.0 2015-12-01 20:11:26 -08:00
ToolbarAndroid Added ColorPropType 2015-12-23 10:08:38 -08:00
Touchable Added ColorPropType 2015-12-23 10:08:38 -08:00
UnimplementedViews Quick fix to require cycle in UnimplementedView 2015-11-23 14:14:32 -08:00
View Add <Text> shadow support 2016-01-01 09:33:31 -08:00
ViewPager Bugfix - Typos 2015-12-15 09:09:32 -08:00
WebView Allowing turning on / off DOM storage on android webviews 2015-12-31 18:04:29 -08:00
ScrollResponder.js ScrollWithouth => ScrollWithout 2015-12-29 12:42:26 -08:00
StaticContainer.js Move stuff out of vendor/react_contrib/ 2015-10-12 11:18:30 -07:00
StaticRenderer.js [Haste] @provides -> @providesModule StaticRenderer 2015-05-14 08:42:13 -08:00
Subscribable.js [ReactNative] clean lint for Libraries/Components 2015-05-18 15:54:07 -08:00