Fix PullToRefresh onRefresh event

Summary: The onRefresh event is a DirectEvent not a BubblingEvent

Reviewed By: PeteTheHeat

Differential Revision: D15969475

fbshipit-source-id: 049a6ffc74306246e8dbc3acdce5b0b26e849fc7
This commit is contained in:
Rick Hanlon
2019-06-24 11:57:13 -07:00
committed by Facebook Github Bot
parent 08bfdfad67
commit 0cb512f536
2 changed files with 2 additions and 40 deletions
@@ -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<null>) => mixed,
onRefresh?: ?(event: DirectEvent<null>) => mixed,
/**
* Whether the view should be indicating an active refresh.