Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49384

How to disable swipe-to-go-back gesture on one page only? (Ionic v5 React)

$
0
0

Does anyone know if there’s a way to disable the iOS swipe-to-go-back gesture on just one page in Ionic React? Or, how to do it programmatically?

I know you can disable it globally using the method in the docs here (i.e. setupConfig), but that method affects all pages and seems to only be runnable once as the app starts up.

Also, I know this is easy to do in an Angular app—just inject IonRouterOutlet and set swipeGesture to true/false when entering/leaving the page (see SO answer / forum answer). I need an equivalent solution for React, if it exists. There doesn’t seem to be any documentation on it at the moment.

Thanks in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49384

Trending Articles



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