mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
940a7d5a51
Summary: Renames PullToRefresh to PullToRefreshView to correct a previous mistake so that this matches the Schema file Reviewed By: cpojer Differential Revision: D15960975 fbshipit-source-id: 575e526df2efdfa260f3cbbb4b0764998a91ade0
49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
import type {BubblingEvent, WithDefault} from '../../Types/CodegenTypes';
|
|
import type {ColorValue} from '../../StyleSheet/StyleSheetTypes';
|
|
import type {ViewProps} from '../View/ViewPropTypes';
|
|
|
|
import codegenNativeComponent from '../../Utilities/codegenNativeComponent';
|
|
|
|
type NativeProps = $ReadOnly<{|
|
|
...ViewProps,
|
|
|
|
/**
|
|
* The color of the refresh indicator.
|
|
*/
|
|
tintColor?: ?ColorValue,
|
|
/**
|
|
* Title color.
|
|
*/
|
|
titleColor?: ?ColorValue,
|
|
/**
|
|
* The title displayed under the refresh indicator.
|
|
*/
|
|
title?: ?WithDefault<string, null>,
|
|
|
|
/**
|
|
* Called when the view starts refreshing.
|
|
*/
|
|
onRefresh?: ?(event: BubblingEvent<null>) => mixed,
|
|
|
|
/**
|
|
* Whether the view should be indicating an active refresh.
|
|
*/
|
|
refreshing: WithDefault<boolean, false>,
|
|
|}>;
|
|
|
|
export default codegenNativeComponent<NativeProps>('PullToRefreshView', {
|
|
paperComponentName: 'RCTRefreshControl',
|
|
});
|