mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook Github Bot
parent
08bfdfad67
commit
0cb512f536
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user