Skip to content

Commit

Permalink
Rename PullToRefreshLayoutAndroid -> PullToRefreshViewAndroid
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Konicek committed Dec 4, 2015
1 parent 49de9bd commit cad4686
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
Expand Up @@ -18,7 +18,7 @@ const React = require('react-native');
const {
ScrollView,
StyleSheet,
PullToRefreshLayoutAndroid,
PullToRefreshViewAndroid,
Text,
TouchableWithoutFeedback,
View,
Expand Down Expand Up @@ -61,9 +61,9 @@ const Row = React.createClass({
);
},
});
const PullToRefreshLayoutAndroidExample = React.createClass({
const PullToRefreshViewAndroidExample = React.createClass({
statics: {
title: '<PullToRefreshLayoutAndroid>',
title: '<PullToRefreshViewAndroid>',
description: 'Container that adds pull-to-refresh support to its child view.'
},

Expand All @@ -88,7 +88,7 @@ const PullToRefreshLayoutAndroidExample = React.createClass({
return <Row data={row} onClick={this._onClick}/>;
});
return (
<PullToRefreshLayoutAndroid
<PullToRefreshViewAndroid
style={styles.layout}
refreshing={this.state.isRefreshing}
onRefresh={this._onRefresh}
Expand All @@ -98,7 +98,7 @@ const PullToRefreshLayoutAndroidExample = React.createClass({
<ScrollView style={styles.scrollview}>
{rows}
</ScrollView>
</PullToRefreshLayoutAndroid>
</PullToRefreshViewAndroid>
);
},

Expand All @@ -124,4 +124,4 @@ const PullToRefreshLayoutAndroidExample = React.createClass({
});


module.exports = PullToRefreshLayoutAndroidExample;
module.exports = PullToRefreshViewAndroidExample;
2 changes: 1 addition & 1 deletion Examples/UIExplorer/UIExplorerList.android.js
Expand Up @@ -27,7 +27,7 @@ var COMPONENTS = [
require('./ProgressBarAndroidExample'),
require('./ScrollViewSimpleExample'),
require('./SwitchAndroidExample'),
require('./PullToRefreshLayoutAndroidExample.android'),
require('./PullToRefreshViewAndroidExample.android'),
require('./TextExample.android'),
require('./TextInputExample.android'),
require('./ToolbarAndroidExample'),
Expand Down
Expand Up @@ -6,7 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule PullToRefreshLayoutAndroid
* @providesModule PullToRefreshViewAndroid
*/
'use strict';

Expand All @@ -24,7 +24,7 @@ var NATIVE_REF = 'native_swiperefreshlayout';
* React view that supports a single scrollable child view (e.g. `ScrollView`). When this child
* view is at `scrollY: 0`, swiping down triggers an `onRefresh` event.
*/
var PullToRefreshLayoutAndroid = React.createClass({
var PullToRefreshViewAndroid = React.createClass({
statics: {
SIZE: RefreshLayoutConsts.SIZE,
},
Expand All @@ -48,7 +48,7 @@ var PullToRefreshLayoutAndroid = React.createClass({
*/
refreshing: React.PropTypes.bool,
/**
* Size of the refresh indicator, see PullToRefreshLayoutAndroid.SIZE
* Size of the refresh indicator, see PullToRefreshViewAndroid.SIZE
*/
size: React.PropTypes.oneOf(RefreshLayoutConsts.SIZE.DEFAULT, RefreshLayoutConsts.SIZE.LARGE),
},
Expand Down Expand Up @@ -81,7 +81,7 @@ var PullToRefreshLayoutAndroid = React.createClass({

var NativePullToRefresh = requireNativeComponent(
'AndroidSwipeRefreshLayout',
PullToRefreshLayoutAndroid
PullToRefreshViewAndroid
);

module.exports = PullToRefreshLayoutAndroid;
module.exports = PullToRefreshViewAndroid;
Expand Up @@ -6,7 +6,7 @@
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule PullToRefreshLayoutAndroid
* @providesModule PullToRefreshViewAndroid
*/
'use strict';

Expand Down
2 changes: 1 addition & 1 deletion Libraries/react-native/react-native.js
Expand Up @@ -37,7 +37,7 @@ var ReactNative = Object.assign(Object.create(require('React')), {
SliderIOS: require('SliderIOS'),
SnapshotViewIOS: require('SnapshotViewIOS'),
Switch: require('Switch'),
PullToRefreshLayoutAndroid: require('PullToRefreshLayoutAndroid'),
PullToRefreshViewAndroid: require('PullToRefreshViewAndroid'),
SwitchAndroid: require('SwitchAndroid'),
SwitchIOS: require('SwitchIOS'),
TabBarIOS: require('TabBarIOS'),
Expand Down

0 comments on commit cad4686

Please sign in to comment.