Update definition for react-native: ViewPagerAndroid

This commit is contained in:
Jung-gun Lim
2016-02-16 17:37:38 +09:00
parent fa788ae7c5
commit 52270b0734
2 changed files with 56 additions and 1 deletions
+28
View File
@@ -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