title: How to Lock drawer for specific page using drawerNavigation [react-navigation][react-native]
body: <p>This is my drawerNavigation :</p>
  
  <pre class="lang-js prettyprint-override"><code>const DashboardStack = StackNavigator({
          Dashboard: {
              screen: Dashboard
          },
      }, {
          headerMode: 'screen',
      });
  
  const DetailsformStack = StackNavigator({
      Detailsform: {
          screen: Detailsform
      },
  }, {
      headerMode: 'none'
  });
  
  const OtpStack = StackNavigator({
      Otp: {
          screen: Otp,
          drawer: {
              lockMode: 'locked-closed'
          }
      },
      }, {
          headerMode: 'none'
  });
  
  const MobilenumberStack = StackNavigator({
      Mobilenumber: {
          screen: Mobilenumber
      },
  }, {
      headerMode: 'none'
  });
  
  const DrawerviewStack = StackNavigator({
      Drawerview: {
          screen: Drawerview
      },
  }, {
      headerMode: 'none'
  });
  
  const ExamsheetStack = StackNavigator({
      Examsheet: {
          screen: Examsheet
      },
  }, {
      headerMode: 'none'
  });
  
  const TopicStack = StackNavigator({
      Topic: {
          screen: Topic
      },
  }, {
      headerMode: 'screen'
  });
  
  const DrawerStack = DrawerNavigator({
      Otp: {
          screen: OtpStack,
      },
      Dashboard: {
          screen: DashboardStack,
      },
      Detailsform: {
          screen: DetailsformStack,
      },
      Mobilenumber: {
          screen: MobilenumberStack,
      },
      Drawerview: {
          screen: DrawerviewStack,
      },
      Examsheet: {
          screen: ExamsheetStack,
      },
      Topic: {
          screen: TopicStack,
      }
  }, {
      headerMode: 'none',
      initialRouteName: 'Mobilenumber',
      contentComponent: Drawerview,
  
      lockMode: 'locked-closed'
  });
  </code></pre>
  
  <p>export default DrawerStack</p>
  
  <p>How can i add lock mode <code>lockMode</code> to specific page.</p>
  
  <p>i tried adding
   <code>drawer: {lockMode: 'locked-closed'}</code> 
  in both components page and drawerNavigation page but it doesnt work.</p>
  
  <p>Does react navigation have a lock mode feature or do i need to disable the swipe gesture?</p>
  
  <p>If there is no feature then let me know how to disable swipe gesture for a particular component or page.</p>