mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Merge pull request #15128 from victor95pc/master
@types/react-native New prop for DrawerLayoutAndroidStatic
This commit is contained in:
Vendored
+12
-2
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user