react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

Error: Drawer side menu is overlaid by main menu..

Open kevinchensd opened this issue 8 years ago • 10 comments

Issue Description

[ENTER DESCRIPTION HERE - Please make sure to use the current naming conventions] The side menu (drawer) is overlaid by main page, but I wanted is side menu should be on top of the main page. please help.

image

Steps to Reproduce / Code Snippets / Screenshots

[FILL THIS OUT - It will be extremely helpful]


Environment

  • React Native Navigation version: latest
  • React Native version: 0.47.2
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): simulator iphone 6 plus

kevinchensd avatar May 16 '18 06:05 kevinchensd

This is the behaviour of the SideMenu. I believe you can tweak it a bit using type and animationType https://wix.github.io/react-native-navigation/#/top-level-api?id=startsinglescreenappparams

drawer: {
    // optional, add this if you want a side menu drawer in your app
    left: {
      // optional, define if you want a drawer from the left
      screen: 'example.FirstSideMenu', // unique ID registered with Navigation.registerScreen
      passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
      disableOpenGesture: false, // can the drawer be opened with a swipe instead of button (optional, Android only)
      fixedWidth: 500 // a fixed width you want your left drawer to have (optional)
    },
    right: {
      // optional, define if you want a drawer from the right
      screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
      passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
      disableOpenGesture: false, // can the drawer be opened with a swipe instead of button (optional, Android only)
      fixedWidth: 500 // a fixed width you want your right drawer to have (optional)
    },
    style: {
      // ( iOS only )
      drawerShadow: true, // optional, add this if you want a side menu drawer shadow
      contentOverlayColor: 'rgba(0,0,0,0.25)', // optional, add this if you want a overlay color when drawer is open
      leftDrawerWidth: 50, // optional, add this if you want a define left drawer width (50=percent)
      rightDrawerWidth: 50 // optional, add this if you want a define right drawer width (50=percent)
    },
    type: 'MMDrawer', // optional, iOS only, types: 'TheSideBar', 'MMDrawer' default: 'MMDrawer'
    animationType: 'door', //optional, iOS only, for MMDrawer: 'door', 'parallax', 'slide', 'slide-and-scale'
    // for TheSideBar: 'airbnb', 'facebook', 'luvocracy','wunder-list'
    disableOpenGesture: false // optional, can the drawer, both right and left, be opened with a swipe instead of button
  },

guyca avatar May 16 '18 06:05 guyca

@guyca can you style the sidemenu the same in version 2?

karlmosenbacher avatar May 22 '18 05:05 karlmosenbacher

I can't use fixedWidth in version2

maestrolsj avatar Jun 13 '18 13:06 maestrolsj

Does the type of sidemenu applies to V2 also @guyca ?

anonrig avatar Sep 29 '18 11:09 anonrig

Any news with this?

acollazomayer avatar Mar 20 '19 21:03 acollazomayer

Screenshot 2019-04-15 at 11 45 45 AM Screenshot 2019-04-15 at 11 45 16 AM @guyca I am facing this issue on ios with React-native-navigation[V2] What should i do

"navigation.js" Navigation.setRoot({

root: { sideMenu: { left: {

    component: {
      id: "sideDrawer",
      name: "SideMenu",
    
    },
  
  },
  center: {
    stack: {
      options: {},
      children: [{
        component: {
          name:"NewCard",
          options: {
            topBar: {
              hideOnScroll: true,
              title: {
                text: "Homescreen",
                color: "white"
              },
              leftButtons: [
                {
                  id: "buttonOne",
                  icon: require("../assets/img/menu.png")
                }
              ],
              background: {
                color: "#05B8CC"
              },
              drawBehind: false,
              visible: true,
              animate: true
            },
          }
        }
      }]
    }
  },
  
}

} });

rishabhSmartdata avatar Apr 15 '19 06:04 rishabhSmartdata

Same issue here on V2. Any way to style it on iOS to be in front of the content ?

cajasmota avatar May 01 '19 21:05 cajasmota

@rishabhSmartdata & @guyca Have you find any solution for this v2 Side Menu?

I am also facing the same issue.

uday007 avatar May 14 '19 09:05 uday007

Same issue here on V2. Any news about this topic on V2 version ?

igor-martucelli avatar May 17 '19 21:05 igor-martucelli

same trouble

Desintegrator avatar Dec 26 '22 14:12 Desintegrator