Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

react navigation 5 Disable swipe back action

$
0
0

I'm working with react navigation 5 :

I created MainStackScreen and AuthStackScreen,

const AuthStack = createStackNavigator();function AuthStackScreen() {  return (<AuthStack.Navigator headerMode="none"><AuthStack.Screen name="Main" component={Main} /><AuthStack.Screen name="Login" component={Login} /><AuthStack.Screen name="Registration" component={Registration} /><AuthStack.Screen name="Home" component={DrawerNavigator} /><AuthStack.Screen name="Notifications" component={Notifications} /><AuthStack.Screen name="SmsValidation" component={SmsValidation} /><AuthStack.Screen name="MoreRegistrationInfo" component={MoreRegistrationInfo} /></AuthStack.Navigator>  );}

MainStackScreen :

const MainScreen = createStackNavigator();function MainStackScreen({navigation}) {  return (<MainScreen.Navigator><MainScreen.Screen name="Main" component={Main} /><MainScreen.Screen name="SmsValidation" component={SmsValidation} /><MainScreen.Screen name="MoreRegistrationInfo" component={MoreRegistrationInfo} /></MainScreen.Navigator>  );}

I want to prevent IOS swipe action back between Login my screens


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>