Merge pull request #15128 from victor95pc/master

@types/react-native New prop for DrawerLayoutAndroidStatic
This commit is contained in:
Yui
2017-03-19 22:36:04 -07:00
committed by GitHub
+12 -2
View File
@@ -2501,9 +2501,9 @@ declare module "react" {
/**
* Specifies the side of the screen from which the drawer will slide in.
* enum(DrawerConsts.DrawerPosition.Left, DrawerConsts.DrawerPosition.Right)
* enum(DrawerLayoutAndroid.positions.Left, DrawerLayoutAndroid.positions.Right)
*/
drawerPosition?: any;
drawerPosition?: number;
/**
* Specifies the width of the drawer, more precisely the width of the
@@ -2564,8 +2564,18 @@ declare module "react" {
ref?: Ref<DrawerLayoutAndroidStatic & ViewStatic>
}
interface DrawerPosition {
Left: number
Right: number
}
export interface DrawerLayoutAndroidStatic extends NativeMethodsMixin, React.ClassicComponentClass<DrawerLayoutAndroidProperties> {
/**
* drawer's positions.
*/
positions: DrawerPosition
/**
* Opens the drawer.
*/