Browse Source

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 years ago
parent
commit
305caeb8c5
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      lib/src/interfaces/Options.ts

+ 6
- 0
lib/src/interfaces/Options.ts View File

@@ -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 {