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

Side menu width option

Open yogevbd opened this issue 8 years ago • 6 comments

options: {
  sideMenu: {
     left: {
       width: 100
     }
  }
}

yogevbd avatar Jun 26 '18 09:06 yogevbd

Is this option implemented ? I am using "react-native-navigation": "2.0.2415"

root: {
      sideMenu: {
        left: {
          component: {
            id: 'sideMenu',
            name: 'sideMenu',
          },
        },
        center: {
          stack: {
            children: [
              {
                component: {
                  name: 'blog.PostsList',
                },
              },
            ],
          },
        },
      },
    },

How can i give a fixed with to my left sideMenu ? @yogevbd @guyca

sumesh1993 avatar Jul 18 '18 11:07 sumesh1993

got it working like this

root: {
   sideMenu: {
     left: {
       component: {
         id: 'sideMenu',
         name: 'sideMenu',
       },
     },
     center: {
       stack: {
         children: [
           {
             component: {
               name: 'blog.PostsList',
             },
           },
         ],
       },
     },
     options: {
       sideMenu: {
         left: {
           width: 200,
         },
       },
     },
   },
 },

sumesh1993 avatar Jul 18 '18 11:07 sumesh1993

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Sep 01 '18 11:09 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Sep 08 '18 12:09 stale[bot]

@sumesh1993 above solution is working for version 2.0.2621 👍

thalesgaldino avatar Oct 28 '18 23:10 thalesgaldino

@yogevbd @sumesh1993 @thalesgaldino But the same options don't work when provided through Navigation.setDefaultOptions

vishalenrique avatar Mar 18 '20 07:03 vishalenrique