[change] RefreshControl placeholder

Fix #638
Close #644
This commit is contained in:
Unknown
2017-09-17 02:10:32 +02:00
committed by Nicolas Gallagher
parent 52e5d41518
commit a01e895e30
+55 -2
View File
@@ -1,2 +1,55 @@
import UnimplementedView from '../UnimplementedView';
export default UnimplementedView;
/**
* Copyright (c) 2017-present, Nicolas Gallagher.
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule RefreshControl
* @flow
*/
import ColorPropType from '../../propTypes/ColorPropType';
import View from '../View';
import ViewPropTypes from '../View/ViewPropTypes';
import { arrayOf, bool, func, number, oneOf, string } from 'prop-types';
import React, { Component } from 'react';
class RefreshControl extends Component {
static propTypes = {
...ViewPropTypes,
colors: arrayOf(ColorPropType),
enabled: bool,
onRefresh: func,
progressBackgroundColor: ColorPropType,
progressViewOffset: number,
refreshing: bool.isRequired,
size: oneOf([0, 1]),
tintColor: ColorPropType,
title: string,
titleColor: ColorPropType
};
render() {
const {
/* eslint-disable */
colors,
enabled,
onRefresh,
progressBackgroundColor,
progressViewOffset,
refreshing,
size,
tintColor,
title,
titleColor,
/* eslint-enable */
...rest
} = this.props;
return <View {...rest} />;
}
}
export default RefreshControl;