diff --git a/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js b/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js index d79d1b1051c..906484dad62 100644 --- a/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js +++ b/Libraries/Components/RefreshControl/PullToRefreshViewNativeComponent.js @@ -10,7 +10,7 @@ 'use strict'; -import type {BubblingEvent, WithDefault} from '../../Types/CodegenTypes'; +import type {DirectEvent, WithDefault} from '../../Types/CodegenTypes'; import type {ColorValue} from '../../StyleSheet/StyleSheetTypes'; import type {ViewProps} from '../View/ViewPropTypes'; @@ -35,7 +35,7 @@ type NativeProps = $ReadOnly<{| /** * Called when the view starts refreshing. */ - onRefresh?: ?(event: BubblingEvent) => mixed, + onRefresh?: ?(event: DirectEvent) => mixed, /** * Whether the view should be indicating an active refresh. diff --git a/Libraries/Components/RefreshControl/PullToRefreshViewNativeViewConfig.js b/Libraries/Components/RefreshControl/PullToRefreshViewNativeViewConfig.js deleted file mode 100644 index e6157a13b05..00000000000 --- a/Libraries/Components/RefreshControl/PullToRefreshViewNativeViewConfig.js +++ /dev/null @@ -1,38 +0,0 @@ - -/** - * 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. - * - * @flow - */ - -'use strict'; - -const registerGeneratedViewConfig = require('../../Utilities/registerGeneratedViewConfig'); - -const PullToRefreshViewViewConfig = { - uiViewClassName: 'PullToRefreshView', - - bubblingEventTypes: { - topRefresh: { - phasedRegistrationNames: { - captured: 'onRefreshCapture', - bubbled: 'onRefresh', - }, - }, - }, - - validAttributes: { - tintColor: { process: require('../../StyleSheet/processColor') }, - titleColor: { process: require('../../StyleSheet/processColor') }, - title: true, - refreshing: true, - onRefresh: true, - }, -}; - -registerGeneratedViewConfig('PullToRefreshView', PullToRefreshViewViewConfig); - -module.exports = 'PullToRefreshView';