Bläddra i källkod

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 år sedan
förälder
incheckning
305caeb8c5
1 ändrade filer med 6 tillägg och 0 borttagningar
  1. 6
    0
      lib/src/interfaces/Options.ts

+ 6
- 0
lib/src/interfaces/Options.ts Visa fil

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