title: react navigation v6 and v5, Disable swipe back action
body: <p>I'm working with react navigation 5 :</p>
  <p>I created MainStackScreen and AuthStackScreen,</p>
  <pre><code>const AuthStack = createStackNavigator();
  
  function AuthStackScreen() {
    return (
      &lt;AuthStack.Navigator headerMode=&quot;none&quot;&gt;
        &lt;AuthStack.Screen name=&quot;Main&quot; component={Main} /&gt;
        &lt;AuthStack.Screen name=&quot;Login&quot; component={Login} /&gt;
        &lt;AuthStack.Screen name=&quot;Registration&quot; component={Registration} /&gt;
        &lt;AuthStack.Screen name=&quot;Home&quot; component={DrawerNavigator} /&gt;
        &lt;AuthStack.Screen name=&quot;Notifications&quot; component={Notifications} /&gt;
        &lt;AuthStack.Screen name=&quot;SmsValidation&quot; component={SmsValidation} /&gt;
        &lt;AuthStack.Screen name=&quot;MoreRegistrationInfo&quot; component={MoreRegistrationInfo} /&gt;
      &lt;/AuthStack.Navigator&gt;
    );
  }
  </code></pre>
  <p>MainStackScreen :</p>
  <pre><code>const MainScreen = createStackNavigator();
  
  function MainStackScreen({navigation}) {
    return (
      &lt;MainScreen.Navigator&gt;
        &lt;MainScreen.Screen name=&quot;Main&quot; component={Main} /&gt;
        &lt;MainScreen.Screen name=&quot;SmsValidation&quot; component={SmsValidation} /&gt;
        &lt;MainScreen.Screen name=&quot;MoreRegistrationInfo&quot; component={MoreRegistrationInfo} /&gt;
      &lt;/MainScreen.Navigator&gt;
    );
  }
  </code></pre>
  <p>I want to prevent IOS swipe action back between Login my screens</p>