Disable back swipe in ios

#1

I want to disable back swipe in my expo app.I have tried the following

gestureEnabled={false} and swipeEnabled={false}

Below is my code in which I want to disable back swipe on home route:

  <NavigationDrawer>
    {/* <StatusBar backgroundColor={statusBarColor} /> */}
    <RouterWithRedux>
      <Stack key="root" hideNavBar gestureEnabled={false}>
        <Scene
          key="login"
          component={Login}
          hideNavBar
          initial={!this.props.x? true : false}
        />
        <Scene key="signIn" component={SignIn} />
        <Scene key="register" component={Register} />

        <Scene key="OtpVerification"
          component={OtpVerification}
          gestureEnabled={false} />


        <Scene key="rootView" component={RootView} gestureEnabled={false} />
        <Scene key="home" component={Home} gestureEnabled={false} swipeEnabled={false}/>

      </Stack>
    </RouterWithRedux>
  </NavigationDrawer>
closed #2

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.