mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Update definition for react-native: ViewPagerAndroid
This commit is contained in:
Vendored
+28
@@ -979,6 +979,31 @@ declare namespace __React {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @see https://facebook.github.io/react-native/docs/viewpagerandroid.html#props
|
||||
*/
|
||||
|
||||
|
||||
export interface ViewPagerAndroidOnPageScrollEventData {
|
||||
position: number;
|
||||
offset: number;
|
||||
}
|
||||
|
||||
export interface ViewPagerAndroidOnPageSelectedEventData {
|
||||
position: number;
|
||||
}
|
||||
|
||||
export interface ViewPagerAndroidProperties extends ViewProperties {
|
||||
initialPage?: number;
|
||||
onPageScroll?: ( event: NativeSyntheticEvent<ViewPagerAndroidOnPageScrollEventData> ) => void;
|
||||
onPageSelected?: ( event: NativeSyntheticEvent<ViewPagerAndroidOnPageSelectedEventData> ) => void;
|
||||
keyboardDismissMode?: string; /* enum('none', 'on-drag') */
|
||||
}
|
||||
|
||||
export interface ViewPagerAndroidStatic extends NativeComponent, React.ComponentClass<ViewPagerAndroidProperties> {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* //FIXME: No documentation extracted from code comment on WebView.ios.js
|
||||
*/
|
||||
@@ -3364,6 +3389,9 @@ declare namespace __React {
|
||||
export var View: ViewStatic
|
||||
export type View = ViewStatic
|
||||
|
||||
export var ViewPagerAndroid: ViewPagerAndroidStatic
|
||||
export type ViewPagerAndroid = ViewPagerAndroidStatic
|
||||
|
||||
export var WebView: WebViewStatic
|
||||
export type WebView = WebViewStatic
|
||||
|
||||
|
||||
Reference in New Issue
Block a user