mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-01 06:22:39 +08:00
AndroidSwipeRefreshLayout (#23039)
Summary: Changelog: ---------- [iOS] [Changed] - moved RCTRefreshControl from RefreshControl as a separate component, as mentioned in #22990 [Android] [Changed] - moved AndroidSwipeRefreshLayout from RefreshControl as a separate component, as mentioned in #22990 Pull Request resolved: https://github.com/facebook/react-native/pull/23039 Reviewed By: rickhanlonii Differential Revision: D13710076 Pulled By: cpojer fbshipit-source-id: 332520b74d6fc73e50dbe511dae22f82015c2d3a
This commit is contained in:
committed by
Facebook Github Bot
parent
707622ac84
commit
b864b6cf3e
@@ -0,0 +1,50 @@
|
||||
/**
|
||||
* 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';
|
||||
|
||||
const requireNativeComponent = require('requireNativeComponent');
|
||||
|
||||
import type {ColorValue} from 'StyleSheetTypes';
|
||||
import type {ViewProps} from 'ViewPropTypes';
|
||||
import type {NativeComponent} from 'ReactNative';
|
||||
|
||||
export type NativeProps = $ReadOnly<{|
|
||||
...ViewProps,
|
||||
|
||||
/**
|
||||
* The color of the refresh indicator.
|
||||
*/
|
||||
tintColor?: ?ColorValue,
|
||||
/**
|
||||
* Title color.
|
||||
*/
|
||||
titleColor?: ?ColorValue,
|
||||
/**
|
||||
* The title displayed under the refresh indicator.
|
||||
*/
|
||||
title?: ?string,
|
||||
|
||||
/**
|
||||
* Called when the view starts refreshing.
|
||||
*/
|
||||
onRefresh?: ?() => mixed,
|
||||
|
||||
/**
|
||||
* Whether the view should be indicating an active refresh.
|
||||
*/
|
||||
refreshing: boolean,
|
||||
|}>;
|
||||
|
||||
type RCTRefreshControlNativeType = Class<NativeComponent<NativeProps>>;
|
||||
|
||||
module.exports = ((requireNativeComponent(
|
||||
'RCTRefreshControl',
|
||||
): any): RCTRefreshControlNativeType);
|
||||
Reference in New Issue
Block a user