浏览代码

Added shouldStretchDrawer property to SideMenuSide interface (#5543)

Looking at the docs (1581780d2c/docs/docs/styling.md) and code (1581780d2c/lib/ios/RNNSideMenuSideOptions.m (L11)) it's possible to use the shouldStretchDrawer property on sideMenu. This property was however missing in the TS interface.
Niels de Bruin 5 年前
父节点
当前提交
305caeb8c5
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      lib/src/interfaces/Options.ts

+ 6
- 0
lib/src/interfaces/Options.ts 查看文件

@@ -639,6 +639,12 @@ export interface SideMenuSide {
639 639
    * Set the height of the side menu
640 640
    */
641 641
   height?: number;
642
+  /**
643
+   * Stretch sideMenu contents when opened past the width
644
+   * #### (iOS specific)
645
+   * @default true
646
+   */
647
+  shouldStretchDrawer?: boolean;
642 648
 }
643 649
 
644 650
 export interface OptionsSideMenu {