Skip to content

Commit

Permalink
Merge pull request #15128 from victor95pc/master
Browse files Browse the repository at this point in the history
@types/react-native New prop for DrawerLayoutAndroidStatic
  • Loading branch information
yuit authored Mar 20, 2017
2 parents b9997f0 + a15660c commit 2a2cbc2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions react-native/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
*/
Expand Down

0 comments on commit 2a2cbc2

Please sign in to comment.